Support for saving metadata fragments & merging into calibration_metadata.yml
1 unresolved thread
1 unresolved thread
Compare changes
We want to remove the duplication of looking up calibration constants in both a pre- notebook and the main correction notebook. If we adopt CalParrot as planned (!767 (merged)), the only remaining missing bit will be writing the constant details to the calibration_metadata.yml
file. The difficulty in doing that from the main notebooks is that they run in parallel - if two happened to write the file at the same time, it could get corrupted.
I see two possible approaches for dealing with this:
calibration_metadata.yml
in the finalize step. So we'd temporarily have one extra file per notebook.One remaining concern with either option: if different copies of the notebook should find different constants - e.g. if a bug means one gets a CalParrot stored reply and the other gets a new reply from CalCat - then what is recorded in calibration_metadata.yml
will be random. Perhaps when merging, we should warn if there are conflicting values in the metadata?
TBD