diff options
author | Onderwaater <onderwaa@esrf.fr> | 2016-07-13 11:51:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-13 11:51:27 +0200 |
commit | 52b54a544a797ed0eff2c1ae867a8504b0dfaf69 (patch) | |
tree | f5d120393d2f4a22e97a542f2ac79dfa74edcc52 | |
parent | 3cfc45793b1917f43da40cb0f11e3b2828d54eda (diff) | |
parent | bb9332aa4570113992db9763da19c25517219199 (diff) |
Merge pull request #21 from picca/master
add the flymedh input
-rw-r--r-- | binoculars/backends/sixs.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/binoculars/backends/sixs.py b/binoculars/backends/sixs.py index f06bd42..1331279 100644 --- a/binoculars/backends/sixs.py +++ b/binoculars/backends/sixs.py @@ -531,6 +531,27 @@ class FlyScanUHV2(FlyScanUHV): } +class FlyMedH(FlyScanUHV): + HPATH = { + "image": HItem("xpad_image", False), + "pitch": HItem("beta", True), + "mu": HItem("mu", False), + "gamma": HItem("gamma", False), + "delta": HItem("delta", False), + "attenuation": HItem("attenuation", True), + } + + def get_values(self, index, h5_nodes): + image = h5_nodes['image'][index] + pitch = h5_nodes['pitch'][index] if h5_nodes['pitch'] else 0.3 + mu = h5_nodes['mu'][index] + gamma = h5_nodes['gamma'][index] + delta = h5_nodes['delta'][index] + attenuation = self.get_attenuation(index, h5_nodes, 2) + + return (image, attenuation, (pitch, mu, gamma, delta)) + + class SBSMedH(FlyScanUHV): HPATH = { "image": HItem("data_03", False), |