def testShowGraphWorkflow(self): fwk = CmdLineFwk() nQuanta = 2 butler, qgraph = makeSimpleQGraph(nQuanta, root=self.root) args = _makeArgs(show=["workflow"]) fwk.showInfo(args, pipeline=None, graph=qgraph)
def testShowGraph(self): """Test for --show options for quantum graph. """ fwk = CmdLineFwk() nQuanta = 2 butler, qgraph = makeSimpleQGraph(nQuanta, root=self.root) args = _makeArgs(show=["graph"]) fwk.showInfo(args, pipeline=None, graph=qgraph)
def testShowPipeline(self): """Test for --show options for pipeline. """ fwk = CmdLineFwk() actions = [ _ACTION_ADD_TASK("lsst.pipe.base.tests.simpleQGraph.AddTask:task"), _ACTION_CONFIG("task:addend=100") ] args = _makeArgs(pipeline_actions=actions) pipeline = fwk.makePipeline(args) args.show = ["pipeline"] fwk.showInfo(args, pipeline) args.show = ["config"] fwk.showInfo(args, pipeline) args.show = ["history=task::addend"] fwk.showInfo(args, pipeline) args.show = ["tasks"] fwk.showInfo(args, pipeline)