diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2016-10-13 15:34:38 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2016-10-13 15:34:38 +0200 |
commit | 75e8f7260964cfab827da2d6d0f8767b5f3a1957 (patch) | |
tree | 4e31f37d8bac605184cd0bbb86def14585887523 | |
parent | b51ca907f1240726cd071f8629b372a541d077bc (diff) |
fix the mask problem
-rw-r--r-- | binoculars/backends/sixs.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/binoculars/backends/sixs.py b/binoculars/backends/sixs.py index 5e1bf32..9b032e2 100644 --- a/binoculars/backends/sixs.py +++ b/binoculars/backends/sixs.py @@ -462,11 +462,10 @@ class FlyScanUHV(SIXS): def process_image(self, index, dataframe, pixels): util.status(str(index)) detector = ALL_DETECTORS[dataframe.detector.name]() + mask = detector.mask.astype(numpy.bool) maskmatrix = load_matrix(self.config.maskmatrix) if maskmatrix is not None: - mask = numpy.bitwise_or(detector.mask, maskmatrix) - else: - mask = detector.mask + mask = numpy.bitwise_or(mask, maskmatrix) # extract the data from the h5 nodes |