Coverage for python/lsst/meas/algorithms/crLib.py : 50%

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
1__all__ = ["findCosmicRays"]
3import warnings
5import lsst.pex.policy as pexPolicy
6from .cr import _findCosmicRays
9def findCosmicRays(image, psf, bkgd, ps, keep=False):
10 """Find cosmic rays in an image."""
11 if isinstance(ps, pexPolicy.Policy):
12 warnings.warn("findCosmicRays acceptance of Policy is deprecated. Use PropertySet "
13 "(support will be removed after v19.0)",
14 category=FutureWarning, stacklevel=2)
15 ps = ps.asPropertySet()
16 return _findCosmicRays(image, psf, bkgd, ps, keep)
19findCosmicRays.__doc__ = _findCosmicRays.__doc__