addDatasetType¶
-
lsst.daf.butler.tests.
addDatasetType
(butler: lsst.daf.butler._butler.Butler, name: str, dimensions: set, storageClass: str) → lsst.daf.butler.core.datasets.type.DatasetType¶ Add a new dataset type to a repository.
Parameters: - butler :
lsst.daf.butler.Butler
The repository to update.
- name :
str
The name of the dataset type.
- dimensions :
set
[str
] The dimensions of the new dataset type.
- storageClass :
str
The storage class the dataset will use.
Returns: - datasetType :
lsst.daf.butler.DatasetType
The new type.
Raises: - ValueError
Raised if the dimensions or storage class is invalid.
Notes
Dataset types are shared across all collections in a repository, so this function does not need to be run for each collection.
- butler :