NumberSciSourcesMetricTask#
- class lsst.ip.diffim.metrics.NumberSciSourcesMetricTask(**kwargs)#
Bases:
MetricTaskTask that computes the number of cataloged non-primary science sources.
Notes#
The task excludes any non-primary sources in the catalog, but it does not require that the catalog include a
detect_isPrimaryorsky_sourcescolumn.Methods Summary
run(sources)Count the number of primary science sources.
Methods Documentation
- run(sources)#
Count the number of primary science sources.
Parameters#
- sources
lsst.afw.table.SourceCatalog A science source catalog, which may be empty.
Returns#
- result
lsst.pipe.base.Struct A
Structcontaining the following component:measurementthe total number of non-primary science sources (
lsst.verify.MeasurementorNone)
- sources