mne.pick_channels

mne.pick_channels(ch_names, include, exclude=[])[source]

Pick channels by names.

Returns the indices of the good channels in ch_names.

Parameters:

ch_names : list of string

List of channels.

include : list of string

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 : list of string

List of channels to exclude (if empty do not exclude any channel). Defaults to [].

Returns:

sel : array of int

Indices of good channels.