QuantumGraphExecutionReport¶
- class lsst.pipe.base.execution_reports.QuantumGraphExecutionReport(tasks: dict[str, lsst.pipe.base.execution_reports.TaskExecutionReport] = <factory>)¶
- Bases: - object- A report on the execution of a quantum graph. - Report the detailed status of each failure; whether tasks were not run, data is missing from upstream failures, or specific errors occurred during task execution (and report the errors). Contains a count of expected, produced DatasetTypes for each task. This report can be output as a dictionary or a yaml file. - Parameters:
- tasksdict
- A dictionary of TaskExecutionReports by task label. 
 
- tasks
 - Methods Summary - make_reports(butler, graph)- Make a - QuantumGraphExecutionReport.- to_summary_dict(butler[, logs])- Summarize the results of the - QuantumGraphExecutionReportin a dictionary.- write_summary_yaml(butler, filename[, logs])- Take the dictionary from - QuantumGraphExecutionReport.to_summary_dictand store its contents in a yaml file.- Methods Documentation - classmethod make_reports(butler: Butler, graph: QuantumGraph | str | ParseResult | ResourcePath | Path) QuantumGraphExecutionReport¶
- Make a - QuantumGraphExecutionReport.- Step through the quantum graph associated with a run, creating a - networkx.DiGraphcalled status_graph to annotate the status of each quantum node. For each task in the quantum graph, use- TaskExecutionReport.inspect_quantumto make a- TaskExecutionReportbased on the status of each node. Return a- TaskExecutionReportfor each task in the quantum graph.- Parameters:
- butlerlsst.daf.butler.Butler
- The Butler used for this report. This should match the Butler used for the run associated with the executed quantum graph. 
- graphQuantumGraph|ResourcePathExpression
- Either the associated quantum graph object or the uri of the location of said quantum graph. 
 
- butler
- Returns:
- report: QuantumGraphExecutionReport
- The - TaskExecutionReportfor each task in the quantum graph.
 
- report: 
 
 - to_summary_dict(butler: Butler, logs: bool = True) dict[str, Any]¶
- Summarize the results of the - QuantumGraphExecutionReportin a dictionary.- Parameters:
- butlerlsst.daf.butler.Butler
- The Butler used for this report. 
- logsbool
- Store the logs in the summary dictionary. 
 
- butler
- Returns:
- summary_dictdict
- A dictionary containing a summary of a - TaskExecutionReportfor each task in the quantum graph.
 
- summary_dict
 
 - write_summary_yaml(butler: Butler, filename: str, logs: bool = True) None¶
- Take the dictionary from - QuantumGraphExecutionReport.to_summary_dictand store its contents in a yaml file.- Parameters:
- butlerlsst.daf.butler.Butler
- The Butler used for this report. 
- filenamestr
- The name to be used for the summary yaml file. 
- logsbool
- Store the logs in the summary dictionary. 
 
- butler