CmdLineFwk¶
-
class
lsst.ctrl.mpexec.
CmdLineFwk
¶ Bases:
object
PipelineTask framework which executes tasks from command line.
In addition to executing tasks this activator provides additional methods for task management like dumping configuration or execution chain.
Attributes Summary
MP_TIMEOUT
Methods Summary
makeGraph
(pipeline, args)Build a graph from command line arguments. makePipeline
(args)Build a pipeline from command line arguments. runPipeline
(graph, taskFactory, args[, butler])Execute complete QuantumGraph. showInfo
(args, pipeline[, graph])Display useful info about pipeline and environment. Attributes Documentation
-
MP_TIMEOUT
= 9999¶
Methods Documentation
-
makeGraph
(pipeline, args)¶ Build a graph from command line arguments.
Parameters: - pipeline :
Pipeline
Pipeline, can be empty or
None
if graph is read from a file.- args :
argparse.Namespace
Parsed command line
Returns: - graph :
QuantumGraph
orNone
If resulting graph is empty then
None
is returned.
- pipeline :
-
makePipeline
(args)¶ Build a pipeline from command line arguments.
Parameters: - args :
argparse.Namespace
Parsed command line
Returns: - pipeline :
Pipeline
- args :
-
runPipeline
(graph, taskFactory, args, butler=None)¶ Execute complete QuantumGraph.
Parameters: - graph :
QuantumGraph
Execution graph.
- taskFactory :
TaskFactory
Task factory
- args :
argparse.Namespace
Parsed command line
- butler :
Butler
, optional Data Butler instance, if not defined then new instance is made using command line options.
- graph :
-
showInfo
(args, pipeline, graph=None)¶ Display useful info about pipeline and environment.
Parameters: - args :
argparse.Namespace
Parsed command line
- pipeline :
Pipeline
Pipeline definition
- graph :
QuantumGraph
, optional Execution graph
- args :
-