eelbrain.pipeline.Pipeline.make_bad_channels
- Pipeline.make_bad_channels(bad_chs=(), redo=False, noise=False, **kwargs)[source]
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.- Parameters:
bad_chs (Sequence[str] | str | int) – 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).
noise (bool) – If True, make bad channels for the empty-room recording instead of the current subject’s recording.
... – State parameters.
kwargs (Any)
- Return type:
None
See also
make_bad_channels_autofind bad channels automatically
load_bad_channelsload the current bad_channels file