braindecode.preprocessing.DropChannels#

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

Braindecode preprocessor wrapper for drop_channels().

Drop channel(s).

Parameters:
  • ch_names (iterable 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.

    Added in version 0.23.0.

Returns:

inst (same type as the input data) – The modified instance.

See also

reorder_channels
pick_channels
pick_types

Notes

Added in version 0.9.0.