DatasetTypeDescriptor¶
-
class
lsst.pipe.base.DatasetTypeDescriptor(name, dimensionNames, storageClassName, scalar, manualLoad)¶ Bases:
objectDescription of an unnormalized proto-DatasetType and its relationship to a PipelineTask.
This class contains the information needed to construct a
DatasetType(once aDimensionUniverseis available) and all relevant options that are used by PipelineTask. Typically this is derived from configuration classes, but sub-classes of PipelineTask can also define additional DatasetTypes that are not part of the task configuration.Parameters: - name :
str Name of the dataset type.
- dimensionNames: `~collections.abc.Set` of `str`
Names of the dimensions used to identify datasets of this type.
- storageClassName: `str`
Name of the
StorageClassfor this dataset type.- scalar :
bool Trueif this is a scalar dataset.- manualLoad :
bool Trueif this dataset will be manually loaded by a concretePipelineTaskinstead of loaded automatically by the base class.
Attributes Summary
manualLoadTrueif the task will handle loading the datanameName of the dataset type ( str).scalarTrueif this is a scalar dataset.Methods Summary
fromConfig(datasetConfig)Make DatasetTypeDescriptor instance from configuration object. makeDatasetType(universe)Construct a true DatasetTypeinstance with normalized dimensions.Attributes Documentation
Methods Documentation
-
classmethod
fromConfig(datasetConfig)¶ Make DatasetTypeDescriptor instance from configuration object.
Parameters: - datasetConfig :
lsst.pex.config.Config Instance of one the
InputDatasetConfig,OutputDatasetConfig,InitInputDatasetConfig, orInitOutputDatasetConfigtypes
Returns: - descriptor :
DatasetTypeDescriptor
- datasetConfig :
-
makeDatasetType(universe)¶ Construct a true
DatasetTypeinstance with normalized dimensions.Parameters: - universe :
lsst.daf.butler.DimensionUniverse Set of all known dimensions to be used to normalize the dimension names specified in config.
Returns: - datasetType :
DatasetType The
DatasetTypedefined by this descriptor.
- universe :
- name :