NumSourcesTask#

class lsst.faro.base.NumSourcesTask(config: Config | None = None, *, name: str | None = None, parentTask: Task | None = None, log: logging.Logger | lsst.utils.logging.LsstLogAdapter | None = None)#

Bases: Task

Simple default task to count the number of sources/objects in catalog.

Methods Summary

run(metricName, catalog, **kwargs)

Run NumSourcesTask Parameters ---------- metricName : str The name of the metric to measure. catalog : dict lsst.afw.table Catalog type kwargs Extra keyword arguments used to construct the task. Returns ------- measurement : Struct The measured value of the metric.

Methods Documentation

run(metricName, catalog, **kwargs)#

Run NumSourcesTask Parameters ———- metricName : str

The name of the metric to measure.

catalogdict

lsst.afw.table Catalog type

kwargs

Extra keyword arguments used to construct the task.

Returns#

measurementStruct

The measured value of the metric.