SingleMetadataMetricConnections

class lsst.verify.tasks.SingleMetadataMetricConnections(*, config: PipelineTaskConfig = None)

Bases: lsst.verify.tasks.MetricConnections

An abstract connections class defining a metadata input.

Notes

SingleMetadataMetricConnections defines the following dataset templates:

package
Name of the metric’s namespace. By verify_metrics convention, this is the name of the package the metric is most closely associated with.
metric
Name of the metric, excluding any namespace.
labelName
Pipeline label of the PipelineTask or name of the CmdLineTask whose metadata are being read.

Attributes Summary

allConnections
defaultTemplates
dimensions
initInputs
initOutputs
inputs
measurement
metadata
outputs
prerequisiteInputs

Methods Summary

adjustQuantum(datasetRefMap) Override to make adjustments to lsst.daf.butler.DatasetRef objects in the lsst.daf.butler.core.Quantum during the graph generation stage of the activator.
buildDatasetRefs(quantum) Builds QuantizedConnections corresponding to input Quantum

Attributes Documentation

allConnections = {'measurement': Output(name='metricvalue_{package}_{metric}', storageClass='MetricValue', doc='The metric value computed by this task.', multiple=False, dimensions={'visit', 'detector', 'instrument'}), 'metadata': Input(name='{labelName}_metadata', storageClass='PropertySet', doc="The target top-level task's metadata. The name must be set to the metadata's butler type, such as 'processCcd_metadata'.", multiple=False, dimensions={'Instrument', 'Detector', 'Exposure'}, deferLoad=False)}
defaultTemplates = {'labelName': '', 'metric': None, 'package': None}
dimensions = {'exposure', 'detector', 'instrument'}
initInputs = frozenset()
initOutputs = frozenset()
inputs = frozenset({'metadata'})
measurement
metadata
outputs = frozenset({'measurement'})
prerequisiteInputs = frozenset()

Methods Documentation

adjustQuantum(datasetRefMap: lsst.pipe.base.connections.InputQuantizedConnection)

Override to make adjustments to lsst.daf.butler.DatasetRef objects in the lsst.daf.butler.core.Quantum during the graph generation stage of the activator.

Parameters:
datasetRefMap : dict

Mapping with keys of dataset type name to list of lsst.daf.butler.DatasetRef objects

Returns:
datasetRefMap : dict

Modified mapping of input with possible adjusted lsst.daf.butler.DatasetRef objects

Raises:
Exception

Overrides of this function have the option of raising an Exception if a field in the input does not satisfy a need for a corresponding pipelineTask, i.e. no reference catalogs are found.

buildDatasetRefs(quantum: lsst.daf.butler.core.quantum.Quantum) → Tuple[lsst.pipe.base.connections.InputQuantizedConnection, lsst.pipe.base.connections.OutputQuantizedConnection]

Builds QuantizedConnections corresponding to input Quantum

Parameters:
quantum : lsst.daf.butler.Quantum

Quantum object which defines the inputs and outputs for a given unit of processing

Returns:
retVal : tuple of (InputQuantizedConnection,

OutputQuantizedConnection) Namespaces mapping attribute names (identifiers of connections) to butler references defined in the input lsst.daf.butler.Quantum