mne.pick_channels

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

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).

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.