mne.utils.warn#
- mne.utils.warn(message, category=<class 'RuntimeWarning'>, module='mne', ignore_namespaces=('mne', ))[source]#
Emit a warning with trace outside the mne namespace.
This function takes arguments like warnings.warn, and sends messages using both
warnings.warn
andlogger.warn
. Warnings can be generated deep within nested function calls. In order to provide a more helpful warning, this function traverses the stack until it reaches a frame outside themne
namespace that caused the error.