From e62cfd591b24568ddcfab327bff56ff84b37fef6 Mon Sep 17 00:00:00 2001 From: Graeme Winter Date: Sun, 8 Sep 2024 17:32:23 +0100 Subject: [PATCH] i23 for run 4, 2024: row 21 of the modules has failed Manually mask 5 modules / one row from 2024-09-01 onwards --- newsfragments/XXX.misc | 1 + src/dxtbx/format/FormatCBFMiniPilatusDLS12M.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 newsfragments/XXX.misc diff --git a/newsfragments/XXX.misc b/newsfragments/XXX.misc new file mode 100644 index 000000000..1442cb21e --- /dev/null +++ b/newsfragments/XXX.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