TaskMetadataAnalysisTask#

class lsst.analysis.tools.tasks.TaskMetadataAnalysisTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#

Bases: AnalysisPipelineTask

Methods Summary

runQuantum(butlerQC, inputRefs, outputRefs)

Override default runQuantum to load the minimal columns necessary to complete the action.

validateMetrics(metadata, taskName)

Raise NoWorkFound if there are insufficent metrics in the task metadata.

Methods Documentation

runQuantum(butlerQC, inputRefs, outputRefs)#

Override default runQuantum to load the minimal columns necessary to complete the action.

Parameters#

butlerQCQuantumContext

A butler which is specialized to operate in the context of a lsst.daf.butler.Quantum.

inputRefsInputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined input/prerequisite connections.

outputRefsOutputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined output connections.

validateMetrics(metadata, taskName)#

Raise NoWorkFound if there are insufficent metrics in the task metadata.

Parameters#

metadatadict

The task metadata converted to a dict.

taskNamestr

The name of the task to extract metadata from

Raises#

NoWorkFound

If none of the metrics are in the metadata.