lsst.pipe.base
18.1.0-4-g6c9d669+5
|
Public Member Functions | |
def | __init__ (self, iterable=None) |
def | labelIndex (self, label) |
def | __str__ (self) |
Pipeline is a sequence of `TaskDef` objects. Pipeline is given as one of the inputs to a supervising framework which builds execution graph out of it. Pipeline contains a sequence of `TaskDef` instances. Main purpose of this class is to provide a mechanism to pass pipeline definition from users to supervising framework. That mechanism is implemented using simple serialization and de-serialization via `pickle`. Note that pipeline serialization is not guaranteed to be compatible between different versions or releases. In current implementation Pipeline is a list (it inherits from `list`) and one can use all list methods on pipeline. Content of the pipeline can be modified, it is up to the client to verify that modifications leave pipeline in a consistent state. One could modify container directly by adding or removing its elements. Parameters ---------- pipeline : iterable of `TaskDef` instances, optional Initial sequence of tasks.
Definition at line 88 of file pipeline.py.
def lsst.pipe.base.pipeline.Pipeline.__init__ | ( | self, | |
iterable = None |
|||
) |
Definition at line 112 of file pipeline.py.
def lsst.pipe.base.pipeline.Pipeline.__str__ | ( | self | ) |
Definition at line 133 of file pipeline.py.
def lsst.pipe.base.pipeline.Pipeline.labelIndex | ( | self, | |
label | |||
) |
Return task index given its label. Parameters ---------- label : `str` Task label. Returns ------- index : `int` Task index, or -1 if label is not found.
Definition at line 115 of file pipeline.py.