TaskDatasetTypes

class lsst.pipe.base.TaskDatasetTypes(initInputs: FrozenSet[DatasetType], initOutputs: FrozenSet[DatasetType], inputs: FrozenSet[DatasetType], prerequisites: FrozenSet[DatasetType], outputs: FrozenSet[DatasetType])

Bases: object

An immutable struct that extracts and classifies the dataset types used by a PipelineTask

Methods Summary

fromTask(taskClass, config, *, universe) Extract and classify the dataset types from a single PipelineTask.

Methods Documentation

classmethod fromTask(taskClass: Type[lsst.pipe.base.pipelineTask.PipelineTask], config: lsst.pipe.base.config.PipelineTaskConfig, *, universe: lsst.daf.butler.core.dimensions.graph.DimensionUniverse) → lsst.pipe.base.pipeline.TaskDatasetTypes

Extract and classify the dataset types from a single PipelineTask.

Parameters:
taskClass: `type`

A concrete PipelineTask subclass.

config: `PipelineTaskConfig`

Configuration for the concrete PipelineTask.

universe: `DimensionUniverse`

Set of all known dimensions, used to construct normalized DatasetType objects.

Returns:
types: `TaskDatasetTypes`

The dataset types used by this task.