NumberSciSourcesMetricTask#

class lsst.ip.diffim.metrics.NumberSciSourcesMetricTask(**kwargs)#

Bases: MetricTask

Task 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_isPrimary or sky_sources column.

Methods Summary

run(sources)

Count the number of primary science sources.

Methods Documentation

run(sources)#

Count the number of primary science sources.

Parameters#

sourceslsst.afw.table.SourceCatalog

A science source catalog, which may be empty.

Returns#

resultlsst.pipe.base.Struct

A Struct containing the following component:

measurement

the total number of non-primary science sources (lsst.verify.Measurement or None)