You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably not just your setup -- our warn does some magic to set the stacklevel such that it's out of the mne namespace. My guess is that some code is using a @contextlib.contextmanager and while traversing the stack, contextlib is outside the mne namespace so our warn stops there and emits a warning. Instead it should know contextlib is special in this way and keep going.
gives a correct line 11, not anything in contextlib:
/home/larsoner/Desktop/warncheck.py:11: RuntimeWarning: This file contains raw Internal Active Shielding data. It may be distorted. Elekta recommends it be run through MaxFilter to produce reliable results. Consider closing the file and running MaxFilter on the data.
mne.io.read_raw_fif(mne.datasets.testing.data_path() / "SSS" / "test_move_anon_raw.fif", allow_maxshield=True)
... I was wondering why the log contains
next(self.gen)
:Originally posted by @cbrnr in #12909 (review)
The text was updated successfully, but these errors were encountered: