TaskDatasetTypes¶
-
class
lsst.pipe.base.
TaskDatasetTypes
(initInputs: lsst.daf.butler.core.named.NamedValueSet[lsst.daf.butler.core.datasets.type.DatasetType][lsst.daf.butler.core.datasets.type.DatasetType], initOutputs: lsst.daf.butler.core.named.NamedValueSet[lsst.daf.butler.core.datasets.type.DatasetType][lsst.daf.butler.core.datasets.type.DatasetType], inputs: lsst.daf.butler.core.named.NamedValueSet[lsst.daf.butler.core.datasets.type.DatasetType][lsst.daf.butler.core.datasets.type.DatasetType], prerequisites: lsst.daf.butler.core.named.NamedValueSet[lsst.daf.butler.core.datasets.type.DatasetType][lsst.daf.butler.core.datasets.type.DatasetType], outputs: lsst.daf.butler.core.named.NamedValueSet[lsst.daf.butler.core.datasets.type.DatasetType][lsst.daf.butler.core.datasets.type.DatasetType])¶ Bases:
object
An immutable struct that extracts and classifies the dataset types used by a
PipelineTask
Methods Summary
fromTaskDef
(taskDef, *, registry, …)Extract and classify the dataset types from a single PipelineTask
.Methods Documentation
-
classmethod
fromTaskDef
(taskDef: lsst.pipe.base.pipeline.TaskDef, *, registry: lsst.daf.butler.registry._registry.Registry, include_configs: bool = True, storage_class_mapping: Optional[Mapping[str, str]] = None) → lsst.pipe.base.pipeline.TaskDatasetTypes¶ Extract and classify the dataset types from a single
PipelineTask
.Parameters: - taskDef: `TaskDef`
An instance of a
TaskDef
class for a particularPipelineTask
.- registry: `Registry`
Registry used to construct normalized
DatasetType
objects and retrieve those that are incomplete.- include_configs :
bool
, optional If
True
(default) include config dataset types asinitOutputs
.- storage_class_mapping :
Mapping
ofstr
toStorageClass
, optional If a taskdef contains a component dataset type that is unknown to the registry, its parent StorageClass will be looked up in this mapping if it is supplied. If the mapping does not contain the composite dataset type, or the mapping is not supplied an exception will be raised.
Returns: - types: `TaskDatasetTypes`
The dataset types used by this task.
Raises: - ValueError
Raised if dataset type connection definition differs from registry definition.
- LookupError
Raised if component parent StorageClass could not be determined and storage_class_mapping does not contain the composite type, or is set to None.
-
classmethod