SerializedDimensionConfig

final class lsst.daf.butler.SerializedDimensionConfig(*, version: int = 0, namespace: str = 'daf_butler', skypix: _SkyPixSectionConfig, elements: dict[str, lsst.daf.butler.dimensions._config._ElementConfig] = None, topology: _TopologySectionConfig = None)

Bases: BaseModel

Configuration that describes a complete dimension data model.

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

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]] = {'elements': FieldInfo(annotation=dict[str, _ElementConfig], required=False, default_factory=dict, description='Non-skypix dimensions and dimension join relations.'), 'namespace': FieldInfo(annotation=str, required=False, default='daf_butler', description="String namespace for this universe.\n\nThis and 'version' are expected to uniquely identify a\ndimension universe.\n"), 'skypix': FieldInfo(annotation=_SkyPixSectionConfig, required=True, description='Hierarchical sky pixelization systems recognized by this dimension universe.'), 'topology': FieldInfo(annotation=_TopologySectionConfig, required=False, default_factory=_TopologySectionConfig, description='Spatial and temporal relationships between dimensions.'), 'version': FieldInfo(annotation=int, required=False, default=0, description="Integer version number for this universe.\n\nThis and 'namespace' are expected to uniquely identify a\ndimension universe.\n")}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.