braindecode.preprocessing.AddChannels#

class braindecode.preprocessing.AddChannels(add_list, force_update_info=False)[source]#

Braindecode preprocessor wrapper for add_channels().

Append new channels from other MNE objects to the instance.

Parameters:
add_listlist

A list of MNE objects to append to the current instance. The channels contained in the other instances are appended to the channels of the current instance. Therefore, all other instances must be of the same type as the current object. See notes on how to add data coming from an array.

force_update_infobool

If True, force the info for objects to be appended to match the values of the current instance. This should generally only be used when adding stim channels for which important metadata won’t be overwritten.

Added in version 0.12.

Returns:
instinstance of Raw, Epochs, or Evoked

The modified instance.

See also

drop_channels

Notes

If self is a Raw instance that has been preloaded into a numpy.memmap instance, the memmap will be resized.

This function expects an MNE object to be appended (e.g. Raw, Epochs, Evoked). If you simply want to add a channel based on values of an np.ndarray, you need to create a RawArray. See <https://mne.tools/mne-project-template/auto_examples/plot_mne_objects_from_arrays.html>`_