Skip to content
Snippets Groups Projects

[Jungfrau][Dark] Account for dark runs not taken by the MDL device

Merged Karim Ahmed requested to merge fix/account_for_non_mdl_dark_runs into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
acelltable -= sc_start
acelltable -= sc_start
# Only for dynamic medium and low gain runs [forceswitchg1, forceswitchg2] in burst mode.
# Only for dynamic medium and low gain runs [forceswitchg1, forceswitchg2] in burst mode.
if gain_mode == 0 and gain > 0 and memory_cells == 16:
if (
 
gain_mode == 0 and # dynamic gain mode
 
gain > 0 and # Medium and low runs
 
memory_cells == 16 and # Burst mode
 
acelltable.shape[0] == 2 # forceswitchg1 and forceswitchg2 acquired with the MDL device.
 
):
# 255 similar to the receiver which uses the 255
# 255 similar to the receiver which uses the 255
# value to indicate a cell without an image.
# value to indicate a cell without an image.
# image shape for forceswitchg1 and forceswitchg2 = (1024, 512, 2, trains)
# image shape for forceswitchg1 and forceswitchg2 = (1024, 512, 2, trains)
Loading