Coverage for python/lsst/meas/algorithms/skyObjects.py : 90%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Configuration for generating sky objects""" doc="Avoid pixels masked with these mask planes") doc="Number of pixels to grow the masked pixels when adding sky objects") doc="Maximum number of trial sky object positions\n" "(default: nSkySources*nTrialSkySourcesMultiplier)") doc="Set nTrialSkySources to\n" " nSkySources*nTrialSkySourcesMultiplier\n" "if nTrialSkySources is None")
"""Generate a list of Footprints of sky objects
Sky objects don't overlap with other objects. This is determined through the provided `mask` (in which objects are typically flagged as `DETECTED`).
The algorithm for determining sky objects is random trial and error: we try up to `nTrialSkySources` random positions to find `nSources` sky objects.
Parameters ---------- mask : `lsst.afw.image.Mask` Input mask plane, which identifies pixels to avoid for the sky objects. seed : `int` Random number generator seed. config : `SkyObjectsConfig` Configuration for finding sky objects.
Returns ------- skyFootprints : `list` of `lsst.afw.detection.Footprint` Footprints of sky objects. Each will have a peak at the center of the sky object. """ return []
avoid = avoid.dilated(config.growMask)
"""Generate a list of Footprints of sky objects
Sky objects don't overlap with other objects. This is determined through the provided `mask` (in which objects are typically flagged as `DETECTED`).
The algorithm for determining sky objects is random trial and error: we try up to `nTrialSkySources` random positions to find `nSources` sky objects.
Parameters ---------- mask : `lsst.afw.image.Mask` Input mask plane, which identifies pixels to avoid for the sky objects. seed : `int` Random number generator seed.
Returns ------- skyFootprints : `list` of `lsst.afw.detection.Footprint` Footprints of sky objects. Each will have a peak at the center of the sky object. """ self.config.nSources, 100*len(skyFootprints)/self.config.nSources) |