Hide keyboard shortcuts

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"] 

2 

3import warnings 

4 

5import lsst.pex.policy as pexPolicy 

6from .cr import _findCosmicRays 

7 

8 

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) 

17 

18 

19findCosmicRays.__doc__ = _findCosmicRays.__doc__