addDatasetType

lsst.daf.butler.tests.addDatasetType(butler: lsst.daf.butler.Butler, name: str, dimensions: Set[str], storageClass: str)lsst.daf.butler.DatasetType

Add a new dataset type to a repository.

Parameters
butlerlsst.daf.butler.Butler

The repository to update.

namestr

The name of the dataset type.

dimensionsset [str]

The dimensions of the new dataset type.

storageClassstr

The storage class the dataset will use.

Returns
datasetTypelsst.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.