PipelineBuilder¶
- 
class 
lsst.pipe.base.PipelineBuilder(taskFactory, pipeline=None)¶ Bases:
objectPipelineBuilder class is responsible for building task pipeline.
The class provides a set of methods to manipulate pipeline by adding, deleting, re-ordering tasks in pipeline and changing their labels or configuration.
Parameters: - taskFactory : 
TaskFactory Factory object used to load/instantiate PipelineTasks
- pipeline : 
Pipeline, optional Initial pipeline to be modified, if
Nonethen new empty pipeline will be created.
Methods Summary
addTask(taskName[, label])Append new task to a pipeline. configOverride(label, value)Apply single config override. configOverrideFile(label, path)Apply overrides from file. deleteTask(label)Remove task from a pipeline. labelTask(label, newLabel)Change task label. moveTask(label, newIndex)Move task to a new position in a pipeline. pipeline([ordered])Return updated pipeline instance. Methods Documentation
- 
addTask(taskName, label=None)¶ Append new task to a pipeline.
Parameters: 
- 
configOverride(label, value)¶ Apply single config override.
Parameters: 
- 
configOverrideFile(label, path)¶ Apply overrides from file.
Parameters: 
- 
deleteTask(label)¶ Remove task from a pipeline.
Parameters: - label : 
str Label of the task to remove.
- label : 
 
- 
labelTask(label, newLabel)¶ Change task label.
Parameters: 
- 
moveTask(label, newIndex)¶ Move task to a new position in a pipeline.
Parameters: 
- 
pipeline(ordered=False)¶ Return updated pipeline instance.
Pipeline will be checked for possible inconsistencies before returning.
Parameters: Returns: - pipeline : 
Pipeline 
Raises: - Exception
 Raised if any inconsistencies are detected in pipeline definition, see
pipeTools.orderPipelinefor list of exception types.
- pipeline : 
 
- taskFactory :