pcdsdevices.utils.re_arg

pcdsdevices.utils.re_arg(kwarg_map)

Decorator to redefine a kwarg to a function, while still supporting the old kwarg, and warning the end user.

Usage: @re_arg({“new_kwarg”: “old_kwarg”}) def myfunc(*args, new_kwarg=<a_value>, **kwargs):