Skip to content

Commit

Permalink
chore(docs): update preprocessing tutorial for using inst.pick() inst…
Browse files Browse the repository at this point in the history
…ead of pick_types() (mne-tools#12326)

Co-authored-by: Marijn van Vliet <[email protected]>
Co-authored-by: Mathieu Scheltienne <[email protected]>
Co-authored-by: Mathieu Scheltienne <[email protected]>
  • Loading branch information
4 people authored and snwnde committed Mar 20, 2024
1 parent 3165f24 commit 3fd1e85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/changes/devel/12326.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated the text in the preprocessing tutorial to use :class:`mne.io.Raw.pick()` instead of the legacy :class:`mne.io.Raw.pick_types()`, by :newcontrib:`btkcodedev`.
2 changes: 2 additions & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@

.. _Bruno Nicenboim: https://bnicenboim.github.io

.. _btkcodedev: https://github.com/btkcodedev

.. _buildqa: https://github.com/buildqa

.. _Carlos de la Torre-Ortiz: https://ctorre.me
Expand Down
5 changes: 3 additions & 2 deletions tutorials/preprocessing/15_handling_bad_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@
fig.suptitle(title, size="xx-large", weight="bold")

# %%
# Note that we used the ``exclude=[]`` trick in the call to
# :meth:`~mne.io.Raw.pick_types` to make sure the bad channels were not
# Note that the method :meth:`~mne.io.Raw.pick()` default
# arguments includes ``exclude=()`` which ensures that bad
# channels are not
# automatically dropped from the selection. Here is the corresponding example
# with the interpolated gradiometer channel; since there are more channels
# we'll use a more transparent gray color this time:
Expand Down

0 comments on commit 3fd1e85

Please sign in to comment.