braindecode.preprocessing.DropChannels#

class braindecode.preprocessing.DropChannels(ch_names, on_missing='raise')[source]#

Drop channel(s).

Parameters:
ch_namesiterable or str

Iterable (e.g. list) of channel name(s) or channel name to remove.

on_missing‘raise’ | ‘warn’ | ‘ignore’

Can be 'raise' (default) to raise an error, 'warn' to emit a warning, or 'ignore' to ignore when entries in ch_names are not present in the raw instance.

New in version 0.23.0.

Returns:
instinstance of Raw, Epochs, or Evoked

The modified instance.

See also

reorder_channels
pick_channels
pick_types

See more details in mne.channels.channels.drop_channels