Revised CalCat API
Compare changes
- Thomas Kluyver authored
+ 32
− 1
@@ -5,6 +5,7 @@ from pathlib import Path
@@ -98,7 +99,7 @@ class SingleConstantVersion:
@@ -133,6 +134,36 @@ class ModulesConstantVersions:
This is based on our discussion last week, but it's still a WIP. In particular, I haven't implemented actually loading the constants yet.
I've tweaked the design slightly: rather than having CalibrationData
subclasses for each detector type, you use CalibrationData.from_conditions()
with a detector specific object like AGIPDConditions
. Jump to the tests to see what this looks like.
Questions:
.select_modules()
and .select_calibrations()
take *args
or a list?