diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2016-07-01 17:58:02 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2016-07-01 17:58:02 +0200 |
commit | bb9332aa4570113992db9763da19c25517219199 (patch) | |
tree | f5d120393d2f4a22e97a542f2ac79dfa74edcc52 | |
parent | eff713acce90a2d8201353f2642d2c474796f327 (diff) |
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), |