TotalUnassociatedDiaObjectsMetricTask#
- class lsst.ap.association.metrics.TotalUnassociatedDiaObjectsMetricTask(**kwargs)#
Bases:
ApdbMetricTaskTask that computes the number of DIAObjects with only one associated DIASource.
Methods Summary
makeMeasurement(dbHandle, outputDataId)Compute the number of unassociated DIAObjects.
Methods Documentation
- makeMeasurement(dbHandle, outputDataId)#
Compute the number of unassociated DIAObjects.
Parameters#
- dbHandle
lsst.dax.apdb.Apdb A database instance.
- outputDataIdany data ID type
The subset of the database to which this measurement applies. Must be empty, as the number of unassociated sources is ill-defined for subsets of the dataset.
Returns#
- measurement
lsst.verify.Measurement The total number of unassociated objects.
Raises#
- MetricComputationError
Raised on any failure to query the database.
- ValueError
Raised if outputDataId is not empty
- dbHandle