lsst.pipe.base¶
The lsst.pipe.base
module provides base classes for the task framework.
Tasks package the algorithmic units of the LSST Science Pipelines.
You can create, configure, and run tasks with their Python APIs.
Some tasks, called pipeline tasks, can be packaged into data processing pipelines that you can run from the command line.
Changes¶
Using lsst.pipe.base¶
Overview¶
Developing tasks and pipeline tasks¶
Developing Pipelines¶
Contributing¶
lsst.pipe.base
is developed at https://github.com/lsst/pipe_base.
You can find Jira issues for this module under the pipe_base component.
Python API reference¶
lsst.pipe.base Package¶
Functions¶
|
Create an execution butler. |
|
Create an iterator over the selected connections type which yields all the defined connections of that type. |
Classes¶
|
Helper class for calling |
|
Deprecated version of |
|
A wrapper class for |
|
A description of the resources available to a running quantum. |
|
GraphBuilder class is responsible for building task execution graph from a Pipeline. |
|
An in-memory version of a |
Exception class to indicate that a lookup by NodeId is impossible due to incompatibilities |
|
|
Input variant of a |
|
Base class for instrument-specific logic for the Gen3 Butler. |
Exception that may be raised by PipelineTasks (and code they delegate to) in order to indicate logic bug or configuration problem. |
|
|
A structure to specify a subset of labels to load |
An exception raised when a Quantum should not exist because there is no work for it to do. |
|
|
Deprecated, this class is used with QuantumGraph save formats of 1 and 2 when unpicking objects and must be retained until those formats are considered unloadable. |
|
A |
|
Config associated with a |
|
Output variant of a |
|
A |
|
An immutable struct that classifies the dataset types used in a |
|
Base class for all pipeline tasks. |
|
Configuration class for |
|
PipelineTaskConnections is a class used to declare desired IO when a PipelineTask is run by an activator |
|
A Butler-like class specialized for a single quantum along with context information that can influence how the task is executed. |
|
QuantumGraph is a directed acyclic graph of |
|
Class representing a node in the quantum graph. |
Exception that may be raised by PipelineTasks (and code they delegate to) in order to indicate that a repeatable problem that will not be addressed by retries. |
|
Exception raised when dataset type is configured as scalar but there are multiple data IDs in a Quantum for that dataset. |
|
|
A container to which you can add fields as attributes. |
|
Base class for data processing tasks. |
|
An immutable struct that extracts and classifies the dataset types used by a |
|
TaskDef is a collection of information about task needed by Pipeline. |
Use to report errors for which a traceback is not useful. |
|
Abstract base class for task factory. |
|
|
Dict-like object for storing task metadata. |
Class Inheritance Diagram¶
lsst.pipe.base.testUtils Module¶
Functions¶
|
Test that a constructed task conforms to its own init-connections. |
|
Test that the output of a call to |
|
Return the initInputs object that would have been passed to a |
|
Inspect a connections class for common errors. |
|
Create a Quantum for a particular data ID(s). |
|
Run a PipelineTask on a Quantum. |
lsst.pipe.base.connectionTypes Module¶
Classes¶
|
Connection for initInput dataset. |
|
Connection for initOutput dataset. |
|
Class used for declaring PipelineTask input connections |
|
Class used for declaring PipelineTask prerequisite connections. |
|
Connection for output dataset. |
|
Base class used for declaring |
Class Inheritance Diagram¶
lsst.pipe.base.pipelineIR Module¶
Classes¶
|
Intermediate representation of configurations read from a pipeline yaml file. |
An exception that is raised when a pipeline contract is not satisfied |
|
|
Intermediate representation of configuration contracts read from a pipeline yaml file. |
|
An intermediate representation of imported pipelines |
|
Intermediate representation of named subset of task labels read from a pipeline yaml file. |
|
Intermediate representation of parameters that are global to a pipeline. |
|
Intermediate representation of a pipeline definition |
|
Intermediate representation of tasks read from a pipeline yaml file. |
Class Inheritance Diagram¶
lsst.pipe.base.tests.mocks Package¶
A system for replacing the tasks in a pipeline with mocks that just read and write trivial datasets.
See Testing pipelines with mocks for details.
Functions¶
|
Return the name of the mock storage class, dataset type, or task label for the given original name. |
|
Return the name of the original storage class, dataset type, or task label that corresponds to the given mock name. |
|
Return whether the given name is that of a mock storage class, dataset type, or task label. |
|
Create mocks for an iterable of TaskDefs. |
Classes¶
|
Class that can match DataId against the user-defined string expression. |
|
The in-memory dataset type used by |
|
Description of the quantum that produced a mock dataset. |
|
Implementation of |
|
Configuration class for |
|
A reimplementation of |
|
Implementation of the StorageClassDelegate interface for mock datasets. |