lsst.pipe.base
16.0-30-g6787e8a+2
|
Classes | |
class | DuplicateOutputError |
class | MissingTaskFactoryError |
class | PipelineDataCycleError |
Functions | |
def | isPipelineOrdered (pipeline, taskFactory=None) |
def | orderPipeline (pipeline, taskFactory=None) |
def lsst.pipe.base.pipeTools.isPipelineOrdered | ( | pipeline, | |
taskFactory = None |
|||
) |
Checks whether tasks in pipeline are correctly ordered. Pipeline is correctly ordered if for any DatasetType produced by a task in a pipeline all its consumer tasks are located after producer. Parameters ---------- pipeline : `pipe.base.Pipeline` Pipeline description. taskFactory: `pipe.base.TaskFactory`, optional Instance of an object which knows how to import task classes. It is only used if pipeline task definitions do not define task classes. Returns ------- True for correctly ordered pipeline, False otherwise. Raises ------ `ImportError` is raised when task class cannot be imported. `DuplicateOutputError` is raised when there is more than one producer for a dataset type. `MissingTaskFactoryError` is raised when TaskFactory is needed but not provided.
Definition at line 82 of file pipeTools.py.
def lsst.pipe.base.pipeTools.orderPipeline | ( | pipeline, | |
taskFactory = None |
|||
) |
Re-order tasks in pipeline to satisfy data dependencies. When possible new ordering keeps original relative order of the tasks. Parameters ---------- pipeline : `pipe.base.Pipeline` Pipeline description. taskFactory: `pipe.base.TaskFactory`, optional Instance of an object which knows how to import task classes. It is only used if pipeline task definitions do not define task classes. Returns ------- Correctly ordered pipeline (`pipe.base.Pipeline` instance). Raises ------ `ImportError` is raised when task class cannot be imported. `DuplicateOutputError` is raised when there is more than one producer for a dataset type. `PipelineDataCycleError` is also raised when pipeline has dependency cycles. `MissingTaskFactoryError` is raised when TaskFactory is needed but not provided.
Definition at line 140 of file pipeTools.py.