mne.
pick_channels_regexp
(ch_names, regexp)[source]¶Pick channels using regular expression.
Returns the indices of the good channels in ch_names.
Parameters: | ch_names : list of string
regexp : string
|
---|---|
Returns: | sel : array of int
|
See also
Examples
>>> pick_channels_regexp(['MEG 2331', 'MEG 2332', 'MEG 2333'], 'MEG ...1')
[0]
>>> pick_channels_regexp(['MEG 2331', 'MEG 2332', 'MEG 2333'], 'MEG *')
[0, 1, 2]
mne.pick_channels_regexp
¶