DimensionRecord¶
-
class
lsst.daf.butler.DimensionRecord(**kwargs)¶ Bases:
objectBase class for the Python representation of database records for a
DimensionElement.Parameters: - **kwargs
Field values for this record. Unrecognized keys are ignored. If this is the record for a
Dimension, its primary key value may be provided with the actual name of the field (e.g. “id” or “name”), the name of theDimension, or both. If this record class has a “timespan” attribute, “datetime_begin” and “datetime_end” keyword arguments may be provided instead of a single “timespan” keyword argument (but are ignored if a “timespan” argument is provided).
Notes
DimensionRecordsubclasses are created dynamically for eachDimensionElementin aDimensionUniverse, and are accessible via theDimensionElement.RecordClassattribute. TheDimensionRecordbase class itself is pure abstract, but does not use theabcmodule to indicate this because it does not have overridable methods.Record classes have attributes that correspond exactly to the
standardfields in the related database table, plus “region” and “timespan” attributes for spatial and/or temporal elements (respectively).Instances are usually obtained from a
Registry, but can be constructed directly from Python as well.DimensionRecordinstances are immutable.Attributes Summary
dataIdA dict-like identifier for this record’s primary keys ( DataCoordinate).Methods Summary
toDict(splitTimespan)Return a vanilla dictrepresentation of this record.Attributes Documentation
-
dataId¶ A dict-like identifier for this record’s primary keys (
DataCoordinate).
Methods Documentation