DatasetType

class lsst.daf.butler.DatasetType(name, dataUnits, storageClass)

Bases: object

A named category of Datasets that defines how they are organized, related, and stored.

A concrete, final class whose instances represent DatasetTypes. DatasetType instances may be constructed without a Registry, but they must be registered via Registry.registerDatasetType() before corresponding Datasets may be added. DatasetType instances are immutable.

Parameters:
name : str

A string name for the Dataset; must correspond to the same DatasetType across all Registries.

dataUnits : iterable of str

DataUnit names that defines the DatasetRefs corresponding to this DatasetType. The input iterable is copied into a frozenset.

storageClass : StorageClass

Instance of a StorageClass that defines how this DatasetType is persisted.