MneExperiment.make_bad_channels(self, bad_chs=(), redo=False, **kwargs)

Write the bad channel definition file for a raw file

If the file already exists, new bad channels are added to the old ones. In order to replace the old file with only the new values, set redo=True.

bad_chs : iterator of str

Names of the channels to set as bad. Numerical entries are interpreted as “MEG XXX”. If bad_chs contains entries not present in the raw data, a ValueError is raised.

redo : bool

If the file already exists, replace it (instead of adding).

State parameters.

See also

find bad channels automatically
load the current bad_channels file
merge bad channel definitions for all sessions