[REMI] Make plots robust against no edges or no hits in data
Description
As an improved version !826 (closed), this MR fixes all plots throughout the notebook to work when there is no proper signal in the data, i.e. no edges could be found or no hits reconstructed.
Also changes existing "warning" prints to use logging.warning
Out of simplicity and to avoid resolving the inevitable conflicts, I target the feat/REMI-pulse-heights
branch with this one and it should only be merged after it.
How Has This Been Tested?
run = 140 # Run ID.
in_folder = '/gpfs/exfel/exp/SQS/202321/p004796/raw' # Partial input path appended with run ID.
calib_config_path = '/gpfs/exfel/exp/SQS/202321/p004796/usr/dld_proc_config.yaml' # Path to correction and transform configuration
Types of changes
- Bug fix (non-breaking change which fixes an issue)