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.warnandlogger.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 themnenamespace that caused the error.