ButlerInitializedTaskRunner

class lsst.pipe.base.ButlerInitializedTaskRunner(TaskClass, parsedCmd, doReturnResults=False)

Bases: lsst.pipe.base.TaskRunner

A TaskRunner for CmdLineTasks that require a butler keyword argument to be passed to their constructor.

Methods Summary

makeTask([parsedCmd, args]) A variant of the base version that passes a butler argument to the task’s constructor.

Methods Documentation

makeTask(parsedCmd=None, args=None)

A variant of the base version that passes a butler argument to the task’s constructor.

Parameters:
parsedCmd : argparse.Namespace

Parsed command-line options, as returned by the ArgumentParser; if specified then args is ignored.

args

Other arguments; if parsedCmd is None then this must be specified.

Raises:
RuntimeError

Raised if parsedCmd and args are both None.