diff --git a/newsfragments/754.misc b/newsfragments/754.misc new file mode 100644 index 000000000..1442cb21e --- /dev/null +++ b/newsfragments/754.misc @@ -0,0 +1 @@ +i23: mask row 21 completely for run 4, 2024 diff --git a/src/dxtbx/format/FormatCBFMiniPilatusDLS12M.py b/src/dxtbx/format/FormatCBFMiniPilatusDLS12M.py index a64b551b8..e4f44e8fb 100644 --- a/src/dxtbx/format/FormatCBFMiniPilatusDLS12M.py +++ b/src/dxtbx/format/FormatCBFMiniPilatusDLS12M.py @@ -172,7 +172,15 @@ def _mask_bad_modules(self, detector): cy = 97 # chip pixels y dx = 7 # module gap size - if timestamp > calendar.timegm((2022, 7, 1, 0, 0, 0)): + if timestamp > calendar.timegm((2024, 9, 1, 0, 0, 0)): + # 2024 run 4 + # modules @ row 22 column 1...5 + if self._multi_panel: + for j in range(5): + detector[5 * 21 + j].add_mask(0, 0, nx, ny) + else: + detector[21].add_mask(0, 0, 5 * nx + 4 * dx, ny) + elif timestamp > calendar.timegm((2022, 7, 1, 0, 0, 0)): # 2022 run 3 # Detector serviced by Dectris, no bad modules pass