SerializedDataCoordinate#
- class lsst.daf.butler.SerializedDataCoordinate(*, dataId: dict[str, int | str], records: dict[str, SerializedDimensionRecord] | None = None)#
Bases:
BaseModelSimplified model for serializing a
DataCoordinate.Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].Methods Summary
direct(*, dataId, records)Construct a
SerializedDataCoordinatedirectly without validators.Attributes Documentation
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- classmethod direct(*, dataId: dict[str, int | str], records: dict[str, dict] | None) SerializedDataCoordinate#
Construct a
SerializedDataCoordinatedirectly without validators.Parameters#
- dataId
SerializedDataId The data ID.
- records
dictorNone The dimension records.
Notes#
This differs from the pydantic “construct” method in that the arguments are explicitly what the model requires, and it will recurse through members, constructing them from their corresponding
directmethods.This method should only be called when the inputs are trusted.
- dataId