braindecode.preprocessing.Pick#
- class braindecode.preprocessing.Pick(picks, exclude=(), *, verbose=None)[source]#
Braindecode preprocessor wrapper for
pick().Pick a subset of channels.
- Parameters:
- picksstr | 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. Bad channels are included by default. Note that channels ininfo['bads']will be included if their names or indices are explicitly provided.- excludelist | str
Set of channels to exclude, only used when picking based on types (e.g., exclude=”bads” when picks=”meg”).
- verbosebool | str | int | None
Control verbosity of the logging output. If
None, use the default verbosity level. See the logging documentation andmne.verbose()for details. Should only be passed as a keyword argument.Added in version 0.24.0.
- Returns:
- instsame type as the input data
The modified instance.
Examples using braindecode.preprocessing.Pick#
Comprehensive Preprocessing with MNE-based Classes