warn_metadata#

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

Raise a SunpyMetadataWarning.

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.