[LPD] New notebook for injecting constants from stored h5files
This MR is related to https://git.xfel.eu/gitlab/detectors/cal_db_interactive/merge_requests/70
Description
This MR introduces a notebook to inject calibration constants from h5files.
It is planned to be used for LPD to inject 4 gain constants to the database.
Constant names:
1- FFMap
2- BadPixelsFF
3- RelativeGain
4- GainAmpMap
The expected structure for the stored constants is: in_folder/{constant_name}_{karabo_da}.h5
The expected data path for the constant array inside the h5file is: ['constant_name']
There is a change as well for the get_report(__)
function in cal_tools to have the ability in injecting a report path metadata even if there is no report (i.e. no_report/<injection-date>
).
How Has This Been Tested?
xfel-calibrate LPD INJECT_CONSTANTS \
--constant-names BadPixelsFF FFMap RelativeGain GainAmpMap \
--in-folder /gpfs/exfel/data/scratch/yousefh/LPD_CalinConst_Provisional/ \
--creation-time 2021-04-21T13:06:00 \
--karabo-id FXE_DET_LPD1M-1 \
--out-folder /gpfs/exfel/data/scratch/ahmedk/test/LPD_constants3 \
--cal-db-interface tcp://max-exfl017:8015#8040
Relevant Documents (optional)
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist:
-
My code follows the code style of this project. -
My change requires a change to the documentation. -
I have updated the documentation accordingly.
Reviewers
Edited by Karim Ahmed