mne.channels.unify_bad_channels#

mne.channels.unify_bad_channels(insts)[source]#

Unify bad channels across a list of instances.

All instances must be of the same type and have matching channel names and channel order. The .info["bads"] of each instance will be set to the union of .info["bads"] across all instances.

Parameters:
instslist

List of instances (Raw, Epochs, Evoked, Spectrum, EpochsSpectrum) across which to unify bad channels.

Returns:
instslist

List of instances with bad channels unified across instances.

Notes

This function modifies the instances in-place.

New in v1.6.