TaskDatasetTypes

class lsst.pipe.base.TaskDatasetTypes(initInputs: NamedValueSet[DatasetType], initOutputs: NamedValueSet[DatasetType], inputs: NamedValueSet[DatasetType], prerequisites: NamedValueSet[DatasetType], outputs: NamedValueSet[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: TaskDef, *, registry: Registry, include_configs: bool = True) TaskDatasetTypes

Extract and classify the dataset types from a single PipelineTask.

Parameters:
taskDef: `TaskDef`

An instance of a TaskDef class for a particular PipelineTask.

registry: `Registry`

Registry used to construct normalized DatasetType objects and retrieve those that are incomplete.

include_configsbool, optional

If True (default) include config dataset types as initOutputs.

Returns:
types: TaskDatasetTypes

The dataset types used by this task.