lsst.ip.diffim  18.1.0-14-g259bd21+19
Functions
lsst.ip.diffim.deprecated Namespace Reference

Functions

def deprecate_policy (func, policy_args=None)
 

Function Documentation

◆ deprecate_policy()

def lsst.ip.diffim.deprecated.deprecate_policy (   func,
  policy_args = None 
)
Issue a deprecation warning if one of the supplied arguments
is a Policy, and convert that to a PropertySet.

Parameters
----------
policy_args : `~collections.abc.Sequence`, optional
    Known positions of likely `~lsst.pex.Policy` arguments for the wrapped
    function.  Can be out of range since some pybind11 constructors take
    different numbers of arguments.  If `None` all arguments will be
    checked.

Definition at line 28 of file deprecated.py.