lsst.meas.algorithms  19.0.0-2-g3d9e4fb2+2
crLib.py
Go to the documentation of this file.
1 __all__ = ["findCosmicRays"]
2 
3 import warnings
4 
5 import lsst.pex.policy as pexPolicy
6 from .cr import _findCosmicRays
7 
8 
9 def 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)
17 
18 
19 findCosmicRays.__doc__ = _findCosmicRays.__doc__
def findCosmicRays(image, psf, bkgd, ps, keep=False)
Definition: crLib.py:9