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.- DatasetTypeinstances may be constructed without a- Registry, but they must be registered via- Registry.registerDatasetType()before corresponding Datasets may be added.- DatasetTypeinstances are immutable.- Parameters: - name : str
- A string name for the Dataset; must correspond to the same - DatasetTypeacross all Registries.
- dataUnits : iterableofstr
- DataUnitnames that defines the- DatasetRefs corresponding to this- DatasetType. The input iterable is copied into a- frozenset.
- storageClass : StorageClassorstr
- Instance of a - StorageClassor name of- StorageClassthat defines how this- DatasetTypeis persisted.
 - Attributes Summary - dataUnits- A - frozensetof- DataUnitnames that defines the- DatasetRefs corresponding to this- DatasetType.- name- A string name for the Dataset; must correspond to the same - DatasetTypeacross all Registries.- storageClass- StorageClassinstance that defines how this- DatasetTypeis persisted.- Methods Summary - component()- Component name (if defined) - componentTypeName(component)- Given a component name, derive the datasetTypeName of that component - isComposite()- Boolean indicating whether this - DatasetTypeis a composite type.- nameWithComponent(datasetTypeName, componentName)- Form a valid DatasetTypeName from a parent and component. - Attributes Documentation - 
dataUnits¶
- A - frozensetof- DataUnitnames that defines the- DatasetRefs corresponding to this- DatasetType.
 - 
name¶
- A string name for the Dataset; must correspond to the same - DatasetTypeacross all Registries.
 - 
storageClass¶
- StorageClassinstance that defines how this- DatasetTypeis persisted. Note that if DatasetType was constructed with a name of a StorageClass then Butler has to be initialized before using this property.
 - Methods Documentation - 
component()¶
- Component name (if defined) - Returns: - comp : str
- Name of component part of DatasetType name. - Noneif this- DatasetTypeis not associated with a component.
 
- comp : 
 - 
componentTypeName(component)¶
- Given a component name, derive the datasetTypeName of that component - Parameters: - component : str
- Name of component 
 - Returns: - derived : str
- Compound name of this - DatasetTypeand the component.
 - Raises: - KeyError
- Requested component is not supported by this - DatasetType.
 
- component : 
 - 
isComposite()¶
- Boolean indicating whether this - DatasetTypeis a composite type.- Returns: - isComposite : bool
- Trueif this- DatasetTypeis a composite type,- Falseotherwise.
 
- isComposite : 
 
- name :