Skip to content

Commit

Permalink
i23 for run 4, 2024: row 21 of the modules has failed
Browse files Browse the repository at this point in the history
Manually mask 5 modules / one row from 2024-09-01 onwards
  • Loading branch information
graeme-winter committed Sep 8, 2024
1 parent 88c7db3 commit e62cfd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/XXX.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
i23: mask row 21 completely for run 4, 2024
10 changes: 9 additions & 1 deletion src/dxtbx/format/FormatCBFMiniPilatusDLS12M.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e62cfd5

Please sign in to comment.