[Jungfrau][Dark] Reflect WRONG_GAIN_VALUE over a pixel in all gain for badpixels map
Description
This MR is addressing this issue: https://git.xfel.eu/calibration/pycalibration/-/issues/86
Marco requested to have WRONG_GAIN_VALUE reflected in all gains.
WRONG_GAIN_VALUE is identified when a pixel gain in a dark run has the wrong value. This happens when a pixel gain value is always set into a specific gain (e.g. low gain (3)) in that case low gain badpixel map should have WRONG_GAIN_VALUE as well for these pixels.
I have taken the chance to increase the timings for the notebook and small refactors.
How Has This Been Tested?
-
TBD: it is expected that the numerical validation will fail.
Relevant Documents (optional)
The below images shows the badpixels map for high, medium, and low gain. The yellow rectangle is the BadPixels with WRONG_GAIN_VALUE. The low gain should also have the same WRONG_GAIN_VALUE on the same pixels as the high and medium.
Currently in online calibration after applying badpixels map these pixels are displayed with wrong values and they should be masked as these pixels have the wrong gain value.
Types of changes
- Bug fix (non-breaking change which fixes an issue)