pnpl.preprocessing.BadChannels#
- class pnpl.preprocessing.BadChannels(step_name='bads', h_freq=40.0, calibration=None, cross_talk=None)[source]#
Detect and mark bad channels.
Uses MNE’s find_bad_channels_maxwell to detect noisy and flat channels. Bad channels are stored in context for use by MaxwellFilter.
- Parameters:
h_freq (float) – High frequency cutoff for detection (default: 40 Hz)
calibration (str | None) – Path to calibration file (auto-detected if None)
cross_talk (str | None) – Path to cross-talk file (auto-detected if None)
step_name (str)
- __init__(step_name='bads', h_freq=40.0, calibration=None, cross_talk=None)#
- Parameters:
step_name (str)
h_freq (float)
calibration (str | None)
cross_talk (str | None)
- Return type:
None
Methods
__init__([step_name, h_freq, calibration, ...])apply(raw, context)Apply this preprocessing step to raw data.
Attributes
calibrationcross_talkh_freqstep_name