NumberUnassociatedDiaObjectsMetricTask#
- class lsst.ap.association.metrics.NumberUnassociatedDiaObjectsMetricTask(**kwargs)#
Bases:
MetadataMetricTaskTask that computes the number of previously-known DIAObjects that do not have detected DIASources in an image, visit, etc..
Methods Summary
getInputMetadataKeys(config)Return the metadata keys read by this task.
makeMeasurement(values)Compute the number of non-updated DIAObjects.
Methods Documentation
- classmethod getInputMetadataKeys(config)#
Return the metadata keys read by this task.
Parameters#
- config
cls.ConfigClass Configuration for this task.
Returns#
- keys
dict[str,str] The keys are the (arbitrary) names of values to use in task code, the values are the metadata keys to be looked up (see the
metadataKeysparameter toextractMetadata). Metadata keys are assumed to include task prefixes in the format oflsst.pipe.base.Task.getFullMetadata(). This method may return a substring of the desired (full) key, but the string must match a unique metadata key.
- config
- makeMeasurement(values)#
Compute the number of non-updated DIAObjects.
Parameters#
- values
dict[str,intorNone] A
dictrepresentation of the metadata. Eachdicthas the following key:"unassociatedObjects"The number of DIAObjects not associated with a DiaSource in this image (
intorNone). May beNoneif the image was not successfully associated.
Returns#
- measurement
lsst.verify.MeasurementorNone The total number of unassociated objects.
- values