trftools.pipeline.TRFExperiment.make_bad_channels
- TRFExperiment.make_bad_channels(bad_chs=(), redo=False, noise=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.- Parameters:
bad_chs (Tuple[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
merge_bad_channelsmerge bad channel definitions for all tasks