Revised CalCat API
Compare changes
+ 20
− 4
@@ -4,6 +4,7 @@ from cal_tools.calcat_interface2 import (
@@ -67,11 +68,26 @@ def test_DSSC_modules_missing():
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?