SerializedDatasetType¶
- class lsst.daf.butler.SerializedDatasetType(*, name: str, storageClass: str | None = None, dimensions: list[typing.Annotated[str, Strict(strict=True)]] | None = None, parentStorageClass: str | None = None, isCalibration: bool = False)¶
- Bases: - BaseModel- Simplified model of a - DatasetTypesuitable for serialization.- Attributes Summary - A dictionary of computed field names and their corresponding - ComputedFieldInfoobjects.- 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] objects.- Methods Summary - direct(*, name[, storageClass, dimensions, ...])- Construct a - SerializedDatasetTypedirectly without validators.- Attributes Documentation - model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
- A dictionary of computed field names and their corresponding - ComputedFieldInfoobjects.
 - model_config: ClassVar[ConfigDict] = {}¶
- Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].
 - model_fields: ClassVar[Dict[str, FieldInfo]] = {'dimensions': FieldInfo(annotation=Union[list[Annotated[str, Strict(strict=True)]], NoneType], required=False, default=None), 'isCalibration': FieldInfo(annotation=bool, required=False, default=False, metadata=[Strict(strict=True)]), 'name': FieldInfo(annotation=str, required=True, metadata=[Strict(strict=True)]), 'parentStorageClass': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, default=None), 'storageClass': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, default=None)}¶
- Metadata about the fields defined on the model, mapping of field names to [ - FieldInfo][pydantic.fields.FieldInfo] objects.- This replaces - Model.__fields__from Pydantic V1.
 - Methods Documentation - classmethod direct(*, name: str, storageClass: str | None = None, dimensions: list | None = None, parentStorageClass: str | None = None, isCalibration: bool = False) SerializedDatasetType¶
- Construct a - SerializedDatasetTypedirectly without validators.- This differs from Pydantic’s model_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. - Parameters:
- namestr
- The name of the dataset type. 
- storageClassstrorNone
- The name of the storage class. 
- dimensionslistorNone
- The dimensions associated with this dataset type. 
- parentStorageClassstrorNone
- The parent storage class name if this is a component. 
- isCalibrationbool
- Whether this dataset type represents calibrations. 
 
- name
- Returns:
- SerializedDatasetType
- A Pydantic model representing a dataset type.