warn_deprecated¶
- sunpy.util.warn_deprecated(msg, stacklevel=1)[source]¶
Raise a
SunpyDeprecationWarning
.- Parameters
msg (str) – Warning message.
stacklevel (int) – This is interpreted relative to the call to this function, e.g.
stacklevel=1
(the default) sets the stack level in the code that calls this function.