SerializedDatasetRefContainerV1#
- class lsst.daf.butler.SerializedDatasetRefContainerV1(*, container_version: Literal['V1'] = 'V1', universe_version: int, universe_namespace: str, dataset_types: dict[str, SerializedDatasetType], compact_refs: dict[UUID, MinimalistSerializableDatasetRef], dimension_records: SerializableDimensionData | None = None, **extra_data: Any)#
Bases:
SerializedDatasetRefContainerSerializable model for a collection of DatasetRef.
Dimension records are not included.
Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].Methods Summary
from_refs(refs)Construct a serializable form from a list of
DatasetRef.to_refs(universe)Construct the original
DatasetRef.Attributes Documentation
- model_config: ClassVar[ConfigDict] = {'extra': 'allow', 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- classmethod from_refs(refs: Iterable[DatasetRef]) Self#
Construct a serializable form from a list of
DatasetRef.Parameters#
- refs
Iterable[DatasetRef] The datasets to include in the container.
- refs
- to_refs(universe: DimensionUniverse) list[DatasetRef]#
Construct the original
DatasetRef.Parameters#
- universe
DimensionUniverse The universe to use when constructing the
DatasetRef.
Returns#
- refs
list[DatasetRef] The
DatasetRefthat were serialized.
- universe