Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Point out that inverse modeling needs an average reference projector ready to not raise an error #12420

Merged
merged 10 commits into from
Feb 6, 2024
9 changes: 6 additions & 3 deletions tutorials/preprocessing/55_setting_eeg_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
# :meth:`~mne.io.Raw.set_eeg_reference` with ``ref_channels='average'``. Just
# as above, this will not affect any channels marked as "bad", nor will it
# include bad channels when computing the average. However, it does modify the
# :class:`~mne.io.Raw` object in-place, so we'll make a copy first so we can
# :class:`~mne.io.Raw` object in-place, so we'll make a copy first, so we can
# still go back to the unmodified :class:`~mne.io.Raw` object later:

# sphinx_gallery_thumbnail_number = 4
Expand Down Expand Up @@ -241,9 +241,12 @@
# the source modeling is performed. In contrast, applying an average reference
# by the traditional subtraction method offers no such guarantee.
#
# For these reasons, when performing inverse imaging, *MNE-Python will raise
# *For these reasons, when performing inverse imaging, MNE-Python will raise
# a ``ValueError`` if there are EEG channels present and something other than
# an average reference strategy has been specified*.
# an average reference projector strategy has been specified. To ensure
# correct functioning consider calling
# :meth:`~mne.io.Raw.set_eeg_reference(projection=True)` to add an average
# reference projector*.
#
# .. LINKS
#
Expand Down
Loading