mne.channel_indices_by_type#
- mne.channel_indices_by_type(info, picks=None)[source]#
Get indices of channels by type.
- Parameters:
- info
mne.Info
The
mne.Info
object with information about the sensors and methods of measurement.- picks
str
| array_like |slice
|None
Channels to include. Slices and lists of integers will be interpreted as channel indices. In lists, channel type strings (e.g.,
['meg', 'eeg']
) will pick channels of those types, channel name strings (e.g.,['MEG0111', 'MEG2623']
will pick the given channels. Can also be the string values'all'
to pick all channels, or'data'
to pick data channels. None (default) will pick all channels. Note that channels ininfo['bads']
will be included if their names or indices are explicitly provided.
- info
- Returns:
- idx_by_type
dict
A dictionary that maps each channel type to a (possibly empty) list of channel indices.
- idx_by_type
Examples using mne.channel_indices_by_type
#
The Info data structure