preprocessing: modern Preprocessor on MNE, agreeing with the director's output

Executes a PreprocessPlan with MNE: EDF read and label normalisation, plan
bads dropped, line removal on the raw signal (interpolated notch when the
line is >= min_db on the kept scalp channels, or ZapLine via meegkit),
Raw.filter (IIR Butterworth order 4, zero phase, run by run between
BAD_ACQ_SKIP), set_eeg_reference (average of kept scalp / linked ears),
EOG/ECG filtered only. Window grid and quality spans from a private copy of
the window QC.

Within 0.25 uV of legacy.preprocessing on every channel of both default
plans away from the filter edges (max(5 s, 3/highpass)).
This commit is contained in:
AlbertoPMDM
2026-11-18 20:50:33 -06:00
parent fcd0f76d76
commit acfd3a70d4
7 changed files with 555 additions and 4 deletions
+1
View File
@@ -37,6 +37,7 @@ posterior_rhythm = "tea_modulo.legacy.biomarkers.posterior_rhythm:MODULE"
[project.entry-points."tea_modulo.modules"]
validation = "tea_modulo.validation:MODULE"
preprocessing = "tea_modulo.preprocessing:MODULE"
[project.entry-points."tea_modulo.executors"]
legacy = "tea_modulo.legacy.executor:run_serial"