MetadataMetricTask¶
MetadataMetricTask is a base class for generating Measurements from task metadata of the same granularity.
The class handles loading metadata and extracting the keys of interest, while subclasses are responsible for creating the Measurement from the extracted values.
Processing summary¶
MetadataMetricTask runs this sequence of operations:
- Find the metadata key(s) needed to compute the metric by calling the customizable - getInputMetadataKeysmethod.
- Search the metadata object passed to - runfor the keys, and extract the corresponding values.
- Process the values by calling the customizable - makeMeasurementmethod, and return the- Measurement.
Python API summary¶
from lsst.verify.tasks.metadataMetricTask import MetadataMetricTask
- 
classMetadataMetricTask(**kwargs)
- A base class for tasks that compute metrics from single metadata objects - ...
- attributeconfig
- Access configuration fields and retargetable subtasks. 
See also
See the MetadataMetricTask API reference for complete details.
Butler datasets¶
Input datasets¶
- metadata`
- The metadata of the top-level pipeline task (e.g., - CharacterizeImageTask,- DiaPipeTask) being instrumented. This connection is usually configured indirectly through the- labelNametemplate as- "{labelName}_metadata".
Output datasets¶
- measurement
- The value of the metric. The dataset type should not be configured directly, but should be set changing the - packageand- metrictemplate variables to the metric’s namespace (package, by convention) and in-package name, respectively. Subclasses that only support one metric should set these variables automatically.
Retargetable subtasks¶
No subtasks.
Configuration fields¶
connections¶
- Data type
- lsst.pipe.base.config.MetadataMetricConfigConnections
- Field type
Configurations describing the connections of the PipelineTask to datatypes
metadataDimensions¶
Override for the dimensions of the ‘metadata’ input, when instrumenting Tasks that don’t produce one metadata object per visit.
saveLogOutput¶
Flag to enable/disable saving of log output for a task, enabled by default.
saveMetadata¶
Flag to enable/disable metadata saving for a task, enabled by default. Deprecated: This field is deprecated and will be removed after v26.