pnpl.preprocessing.MaxwellFilter#
- class pnpl.preprocessing.MaxwellFilter(step_name='sss', origin='auto', destination=(0, 0, 0.04), calibration=None, cross_talk=None)[source]#
Apply Maxwell filter (Signal Space Separation).
This step: - Separates signals from inside and outside the head - Interpolates bad channels - Optionally applies head position correction
- Parameters:
origin (str) – Origin for spherical harmonics (‘auto’ or (x, y, z))
destination (Tuple[float, float, float]) – Destination for head position alignment (default: (0, 0, 0.04))
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='sss', origin='auto', destination=(0, 0, 0.04), calibration=None, cross_talk=None)#
- Parameters:
step_name (str)
origin (str)
destination (Tuple[float, float, float])
calibration (str | None)
cross_talk (str | None)
- Return type:
None
Methods
__init__([step_name, origin, destination, ...])apply(raw, context)Apply this preprocessing step to raw data.
Attributes
calibrationcross_talkdestinationoriginstep_name