warn_user#

sunpy.util.warn_user(msg, stacklevel=1)[source]#

Raise a SunpyUserWarning.

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.