SerializedDimensionGraph¶
- class lsst.daf.butler.SerializedDimensionGraph(*, names: list[str])¶
Bases:
BaseModelSimplified model of a
DimensionGraphsuitable for serialization.Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].Metadata about the fields defined on the model, mapping of field names to [
FieldInfo][pydantic.fields.FieldInfo].Methods Summary
direct(*, names)Construct a
SerializedDimensionGraphdirectly without validators.Attributes Documentation
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'names': FieldInfo(annotation=list[str], required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [
FieldInfo][pydantic.fields.FieldInfo].This replaces
Model.__fields__from Pydantic V1.
Methods Documentation
- classmethod direct(*, names: list[str]) SerializedDimensionGraph¶
Construct a
SerializedDimensionGraphdirectly without validators.- Parameters:
- Returns:
- graph
SerializedDimensionGraph Model representing these dimensions.
- graph
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.