TaskFactory

class lsst.pipe.base.TaskFactory

Bases: object

Abstract base class for task factory.

Task factory is responsible for creating instances of PipelineTask subclasses.

Methods Summary

makeTask(taskDef, butler, initInputRefs)

Create new PipelineTask instance from its TaskDef.

Methods Documentation

abstract makeTask(taskDef: TaskDef, butler: LimitedButler, initInputRefs: Iterable[DatasetRef] | None) PipelineTask

Create new PipelineTask instance from its TaskDef.

Parameters:
taskDefTaskDef

Task definition structure.

butlerlsst.daf.butler.LimitedButler

Butler instance used to obtain initialization inputs for task.

initInputRefsIterable of DatasetRef or None

List of resolved dataset references for init inputs for this task.

Returns:
taskPipelineTask

Instance of a PipelineTask class.

Raises:
Any exceptions that are raised by PipelineTask constructor or its
configuration class are propagated back to caller.