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 and mne.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_channels
pick_types
reorder_channels

Notes

If ordered is False, the channel names given via ch_names are 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 using ordered=True, you may also use reorder_channels to set channel order, if necessary.

Added in version 0.9.0.