lsst.pipe.base
19.0.0-24-g878c510+4
|
Public Member Functions | |
PipelineDatasetTypes | fromPipeline (cls, pipeline, *Registry registry) |
An immutable struct that classifies the dataset types used in a `Pipeline`.
Definition at line 519 of file pipeline.py.
PipelineDatasetTypes lsst.pipe.base.pipeline.PipelineDatasetTypes.fromPipeline | ( | cls, | |
pipeline, | |||
*Registry | registry | ||
) |
Extract and classify the dataset types from all tasks in a `Pipeline`. Parameters ---------- pipeline: `Pipeline` An ordered collection of tasks that can be run together. registry: `Registry` Registry used to construct normalized `DatasetType` objects and retrieve those that are incomplete. Returns ------- types: `PipelineDatasetTypes` The dataset types used by this `Pipeline`. Raises ------ ValueError Raised if Tasks are inconsistent about which datasets are marked prerequisite. This indicates that the Tasks cannot be run as part of the same `Pipeline`.
Definition at line 585 of file pipeline.py.