Repository navigation
Description
🤖 Filed by an agent at @adelorme's request, as post-merge follow-up for the EEGLAB test-port stack (#329–#372).
@suraj-ranganath reported running the external parity harness against each PR and the cumulative tip: EEGPrep and live MATLAB/EEGLAB through eeglabcompat, 13 subjects × 7 pipeline stages; import and re-referencing exactly identical; ASR/ICA differing by at most 0.000014 µV; two MATLAB R2026a ICLabel outliers reproduced identically on unmodified develop; the older exact golden result generated under MATLAB R2025b.
This is the strongest evidence attached to the stack and it should be recorded somewhere durable rather than living in a chat thread. Three things:
1. Provenance. Which commit was the harness run against, and can the summary output be attached to this issue or the epic?
2. ASR mode. Was the run made with BurstRejection='off' and WindowCriterion='off', and what fraction of samples did ASR rewrite?
This is a documented property of this harness, not a doubt about the result. With BurstRejection='on', clean_artifacts builds its retained-sample mask as |original - repaired| < 1e-8, so every sample ASR rewrote is discarded and never reaches the output — the comparison is then structurally unable to see ASR reconstruction error. Measured previously in this repo: EEGPrep vs MATLAB ASR burst reconstruction differed by ~234 µV while the same comparison with rejection on was bit-identical; separately, perturbing the ASR coefficient table by ~1e-13 relative still gave bit-identical step-3 output. So ≤ 0.000014 µV is consistent both with a correct ASR path and with a run blind to reconstruction. If rejection mode was on, the figure should be recorded as a rejection-decision check so nobody later cites it as covering reconstruction.
3. Test validation. Were any of the 99 new test files validated against MATLAB at any point, even out of tree? None reference an oracle in-tree. If some were, it narrows the scope of the binary-reader validation issue.
For reference, the harness drives these entry points: pop_loadset, pop_saveset, eeg_checkset, eeg_interp, iclabel, pop_load_frombids, clean_artifacts, pop_subcomp, pop_select, pop_reref, eeg_picard, eeg_idx, clean_rawdata, pop_rmbase, pop_epoch, eeg_icflag, pop_importbids, pop_icflag — 8 of which the stack modifies.
Activity
suraj-ranganath commentedon Oct 16, 2026
🤖 The ds003061 summary in
tests/parity_expected/ds003061_pipeline.json(linux_x86_64_R2025b) is ina5f8eb5(#471). That PR attributes the R2025b measurement to3c79fe08, which was squashed intoa5f8eb5.clean_artifactsin that run setsBurstRejection='on'(CLEAN_PARAMSintests/test_ds003061_stage_parity.py). Across 13 subjects the largestclean_artifactsmax_absis2.45e-11µV (sub-007). With rejection on, samples ASR rewrote are dropped before the comparison, so this is a retained-sample check.ASR reconstruction is the nightly fuzz.
tests/fuzz/harness.pycallsclean_asrdirectly, andpop_clean_rawdatawithBurstRejection='off'andWindowCriterion='off'. The ceiling is[clean_asr]intests/fuzz/tolerances.toml(abs 0, rel1e-6). The workflow is.github/workflows/fuzz-nightly.yml. The 2026-10-15 run ona5f8eb5(https://github.com/sccn/eegprep/actions/runs/38721110504, seed 20261015) finishedharness_ok=Truewith 4 divergences; none wereclean_asr(#472pop_eegfiltnew, #473 and #474pop_reref).#471 does not say whether the 99 new test files were validated against MATLAB.
suraj-ranganath commentedon Oct 16, 2026
Answered in #392 (comment). Closing. Reopen if anything is still unclear.
arnodelorme commentedon Dec 1, 2026
🤖 The pop_clean_rawdata dialog and native jamming captures are tracked in #1008.