DimensionRecordFactory¶
- class lsst.daf.butler.DimensionRecordFactory(*args, **kwargs)¶
Bases:
Protocol
Protocol for a callback that can be used to create a dimension record to add to a
DimensionRecordSet
when a search for an existing one fails.Methods Summary
__call__
(record_class, required_values)Make a new
DimensionRecord
instance.Methods Documentation
- __call__(record_class: type[lsst.daf.butler.dimensions._records.DimensionRecord], required_values: tuple[int | str | None, ...]) DimensionRecord ¶
Make a new
DimensionRecord
instance.- Parameters:
- record_class
type
[DimensionRecord
] A concrete
DimensionRecord
subclass.- required_values
tuple
Tuple of data ID values, corresponding to
record_class.definition.required
.
- record_class