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

fromConnections(connectionsInstance, *, registry) Extract and classify the dataset types from a single PipelineTask.

Methods Documentation

classmethod fromConnections(connectionsInstance: lsst.pipe.base.connections.PipelineTaskConnections, *, registry: lsst.daf.butler.core.registry.Registry) → lsst.pipe.base.pipeline.TaskDatasetTypes

Extract and classify the dataset types from a single PipelineTask.

Parameters:
connectionsInstance: `PipelineTaskConnections`

An instance of a PipelineTaskConnections class for a particular PipelineTask.

registry: `Registry`

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

Returns:
types: `TaskDatasetTypes`

The dataset types used by this task.