[Reproducability][DSSC][CORRECT] precorrection notebook and constants in YAML
Description
A precorrection notebook to save constants in a YAML and enable reading constants from metadata in YAML files.
This is rebased on https://git.xfel.eu/detectors/pycalibration/-/merge_requests/700 and there are functions used that are introduced in this MR.
The precorrection notebook is mostly a copy-paste from the correction notebook for the parts of reading the files, reading the conditions, and loading the constants. (get_from_db is used instead.)
Move get_num_cells
to be accessible for both notebooks
How Has This Been Tested?
Tested with the SCS reference run.
Reports and output can be seen at /gpfs/exfel/data/scratch/ahmedk/test/reproducability
Relevant Documents (optional)
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Edited by Karim Ahmed