[AGIPD][CORRECT] Workaround for fixing plots after correcting one cellId
A workaround for https://git.xfel.eu/detectors/pycalibration/-/merge_requests/640. Based on EXtra-data 1.9.1
The workaround is planned to be used until we can safely switch to EXtra-data > 1.10.0
Description
- Producing 1 cellId corrected images leads to multiple errors:
- When one cellId is selected for correction. Add a new axis for the cellId for corrected sources to preserve expected dimension. This is the workaround.
- The histogram pulseId intensity plots fails as there is only on pulseId value. adapt pulse_range if corrected cellId is one.
- cell_id_preview is set to 1 and it was discovered to be used as a cell_id_preview. properly show and index cell_id_preview
- During debugging it was found that the mean RAW image is always created from all cells. It should be only created from the selected cellIds to correct.
How Has This Been Tested?
Relevant Documents (optional)
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Edited by Karim Ahmed