[Generic] Injection code for DynamicFF corrections
All threads resolved!
All threads resolved!
Compare changes
This MR contains the new machinery to write calibration constant files and inject them into CalCat. I decided to have it in its own MR against !939 (merged) for a cleaner diff and independent discussion.
For writing, for now there's only the low-level function write_ccv
expecting all kinds of metadata to be passed explicitly. I've been exploring some more convenient APIs to simplify the boilerplate in various notebooks, but let's give this more time. For now the Shimadzu characterization notebook was explicitly written in a way to have this explicit information handy, so let's make use of it.
For injection, there's the original function used for testing and design inject_ccv_legacy
that also takes all data explicitly, and a new version to be used from now on that reads most of it from the CCV file created with write_ccv
. This is done to allow the webservice to also perform injection on behalf of a user with (almost) just the files at hand.
WIP