braindecode.preprocessing.PickChannels#
- class braindecode.preprocessing.PickChannels(ch_names, ordered=True, *, verbose=None)[source]#
Braindecode preprocessor wrapper for
pick_channels().Warning
LEGACY: New code should use inst.pick(…).
Pick some channels.
- Parameters:
- ch_nameslist
The list of channels to select.
- orderedbool
If True (default), ensure that the order of the channels in the modified instance matches the order of
ch_names.Added in version 0.20.0.
Changed in version 1.7: The default changed from False in 1.6 to True in 1.7.
- 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 1.1.
- Returns:
- instinstance of Raw, Epochs, or Evoked
The modified instance.
See also
drop_channelspick_typesreorder_channels
Notes
If
orderedisFalse, the channel names given viach_namesare assumed to be a set, that is, their order does not matter. In that case, the original order of the channels in the data is preserved. Apart from usingordered=True, you may also usereorder_channelsto set channel order, if necessary.Added in version 0.9.0.