[LPD][DARK] Support parallel gain mode
Description
Add support of parallel gain mode to the LPD dark notebook in a minimally invasive way.
For now I kept the original structure that assumes three runs in a given state by processing a single run thrice and separating out the relevant gain data each time. This is wildly inefficient, but should yield a usable result with minimal impact.
The distinction between adaptive and parallel gain is done by the operator when requesting darks through the operation mode - this is necessary as parallel gain only requires a single run while adaptive gain asks for three. This was always passed on to the notebook, but to my knowledge so far never used. This could also be checked by looking into control data, but the number of runs essentially serves as a hard check on the myMdC already.
How Has This Been Tested?
Early commissioning for parallel gain (note these do not yet contain the CONTROL
data parts)
in_folder = "/gpfs/exfel/exp/FXE/202430/p900433/raw" # path to input data, required
run = 88
operation_mode = 'LPD_PARALLEL_GAIN'
New test data with CONTROL
data
in_folder = "/gpfs/exfel/exp/FXE/202431/p900441/raw"
run = 142
operation_mode = 'LPD_PARALLEL_GAIN'
Types of changes
- New feature (non-breaking change which adds functionality)
Reviewers
FYI @bermudei