SetPrimaryFlagsTask

Python API summary

from lsst.pipe.tasks.setPrimaryFlags import SetPrimaryFlagsTask
classSetPrimaryFlagsTask(schema, isSingleFrame=False, **kwargs)

Add isPrimaryKey to a given schema...

attributeconfig

Access configuration fields and retargetable subtasks.

methodrun(sources, skyMap=None, tractInfo=None, patchInfo=None, includeDeblend=True)

Set is-patch-inner, is-tract-inner and is-primary flags on sources. For coadded imaging, the is-primary flag returns True when an object has no children, is in the inner region of a coadd patch, is in the inner region of a coadd trach, and is not detected in a pseudo-filter (e.g., a sky_object). For single frame imaging, the is-primary flag returns True when a source has no children and is not a sky source...

See also

See the SetPrimaryFlagsTask API reference for complete details.

Retargetable subtasks

No subtasks.

Configuration fields

nChildKeyName

Default
'deblend_nChild'
Field type
str Field
Name of field in schema with number of deblended children

pseudoFilterList

Default
['sky']
Field type
str ListField
Names of filters which should never be primary