[LPD][DARK] Fix plotting if cellID data is the same for all trains
A failed slurm was reported for LPD dark processing: Runs , Proposal
The failure was related to parameter nbins while plotting pedestal distribution.
/gpfs/exfel/exp/FXE/202202/p002808
. DarkRun1: 6, 7, and 8. DarkRun2: 17, 18, and 19
Description
The Plotting error resulted from nbins=0
as the values for the sliced image im[12, 12, cellId==12]
had the same values.
I am not sure if this is expected or not.
To fix this a check was added to use nbins for the number of trains and plot from 0 to the value of CellId data.
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