NumberDeblendChildSourcesMetricTask#
- class lsst.pipe.tasks.metrics.NumberDeblendChildSourcesMetricTask(**kwargs)#
Bases:
MetricTaskTask that computes the number of science sources created through deblending.
This task only counts final deblending products; i.e., if deblending was run more than once or with multiple iterations, only the final set of deblended sources are counted, and not any intermediate ones. If sky source information is present, sky sources are excluded.
Notes#
The task excludes any non-sky sources in the catalog, but it does not require that the catalog include a
sky_sourcescolumn.Methods Summary
run(sources)Count the number of science sources created by deblending.
Methods Documentation
- run(sources)#
Count the number of science sources created by deblending.
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 science sources from deblending (
lsst.verify.Measurement). If no deblending information is available insources, this isNone.
Raises#
- MetricComputationError
Raised if
sourcesis missing mandatory keys for source catalogs.
- sources