Skip to content
Snippets Groups Projects

calcat_interface2: Fix require_calibrations() when none of a given calibration type found

Merged Thomas Kluyver requested to merge fix/require-calibrations into master
1 unresolved thread
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -730,7 +730,10 @@ class CalibrationData(Mapping):
"""Drop any modules missing the specified constant types"""
mods = set(self.aggregator_names)
for cal_type in calibrations:
mods.intersection_update(self[cal_type].constants)
if cal_type in self:
mods.intersection_update(self[cal_type].constants)
else:
mods = set() # None of this found
return self.select_modules(aggregator_names=mods)
def select_modules(
Loading