Skip to content

Commit 1e52625

Browse files
committed
Add verbose parameter to pick_channels() method
1 parent dc88b7a commit 1e52625

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/changes/latest.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Enhancements
2525
~~~~~~~~~~~~
2626
- Add support for ``overview_mode`` in :meth:`raw.plot() <mne.io.Raw.plot>` and related functions/methods (:gh:`10501` by `Eric Larson`_)
2727

28+
- The ``pick_channels`` method gained a ``verbose`` parameter, allowing e.g. to suppress messages about removed projectors (:gh:`xxx` by `Richard Höchenberger`_)
29+
2830
Bugs
2931
~~~~
3032
- Fix bug in :func:`mne.io.read_raw_brainvision` when BrainVision data are acquired with the Brain Products "V-Amp" amplifier and disabled lowpass filter is marked with value ``0`` (:gh:`10517` by :newcontrib:`Alessandro Tonin`)

mne/channels/channels.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ def pick_types(self, meg=False, eeg=False, stim=False, eog=False,
692692

693693
return self
694694

695-
def pick_channels(self, ch_names, ordered=False):
695+
@verbose
696+
def pick_channels(self, ch_names, ordered=False, verbose=None):
696697
"""Pick some channels.
697698
698699
Parameters
@@ -704,6 +705,9 @@ def pick_channels(self, ch_names, ordered=False):
704705
the modified instance matches the order of ``ch_names``.
705706
706707
.. versionadded:: 0.20.0
708+
%(verbose)s
709+
710+
.. versionadded:: 1.1
707711
708712
Returns
709713
-------

0 commit comments

Comments
 (0)