addDatasetType#
- lsst.daf.butler.tests.addDatasetType(butler: Butler, name: str, dimensions: set[str], storageClass: str) 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