mne.pick_channels¶
-
mne.pick_channels(ch_names, include, exclude=[], ordered=False)[source]¶ Pick channels by names.
Returns the indices of
ch_namesinincludebut not inexclude.- Parameters
- ch_names
listofstr List of channels.
- include
listofstr List of channels to include (if empty include all available).
Note
This is to be treated as a set. The order of this list is not used or maintained in
sel.- exclude
listofstr List of channels to exclude (if empty do not exclude any channel). Defaults to [].
- orderedbool
If true (default False), treat
includeas an ordered list rather than a set, and any channels fromincludeare missing inch_namesan error will be raised.New in version 0.18.
- ch_names
- Returns
See also