You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_reref (Re-reference the data): graphical and numerical parity with EEGLAB #794
EEGPrep checks each EEGLAB function on its own, in one issue, for both the window and the numbers (Arno, November 26, 2026). This issue is pop_reref, Re-reference the data. It stays open until the window and the numbers are both acceptably close to EEGLAB's, even when a pull request is merged or closed.
Window: The case comes from a scripted average reference with every channel excluded. The window still needs comparison.
Numbers: EEGPrep raises “No channels available for re-referencing”. MATLAB succeeds. Its subtraction selects no rows, although the wrapper can still label the reference as average.
What remains: Return the original samples and preserve the reference and ICA metadata when all channels are excluded. Explain that at least one channel must be eligible to apply an average reference. Document any difference from the MATLAB reference label.
Repro on develop (aa81d9ab): Use the one-channel, 265-sample crop in #686, seed 20261124. Call pop_reref(EEG, [], exclude=[1], keepref="off", gui=False). The saved case uses zero-based exclude=[0].
Done when: Verify exact samples, shape, labels and metadata. Check the public 1-based call against the zero-based routine and repeat with one channel eligible. Invalid indices and an explicitly excluded reference channel must still raise an error.
Failing tests for the all-channels-excluded average reference (public 1-based pop_reref and 0-based reref, one eligible channel, excluded explicit reference)
Fix: reref returns samples unchanged when no channel is eligible (as reref.m does, with its 0x0 refmatrix). pop_reref warns and returns the dataset unchanged, keeping EEG.ref, chanlocs.ref and ICA
Difference from EEGLAB documented in resources/help/pop_reref.md and docs/source/api/interactive_pop_workflows.rst. EEGLAB relabels the legacy EEG.ref as average and drops ICA
🤖 Linux comparison, November 28. Both Re-reference the data dialogs opened on jamming. With reference electrode 1, 8, or 16, the EEG output samples matched exactly in all three cases. These cases used an explicit electrode. The all-channels-excluded average-reference case tracked here still needs its own result.
He adds that the Linux capture is wrong while the Mac and Windows ones are right, which suggests the changes did not reach the Linux checkout on jamming. Check the revision there before the next capture.
pop_reref, The geometry doesn't match MATLAB. There is an empty row after interpreted moving of channels. Also, like yesterday, the edit box for the Huber average is not aligned with the rest of the edit boxes.
Linux is not correct, but the other ones are correct. But points towards not putting the changes in Linux.
Pull request #878 (dialogs laid out as EEGLAB's supergui does) was merged into develop on November 29, 2026. The pop_reref window is now on the new layout. Its graphical part may be solved; the numerical part is not affected. It is labeled maybe-done and will be checked in the full rerun of every dialog on jamming, then closed if the captures match EEGLAB.
🤖 The window part is now close to EEGLAB; this function issue stays open for the numbers (rule 17) and loses the maybe-done label.
Rerun of every dialog on Linux after pull request #878 was merged (jamming, EEGLAB develop 5e0be870, EEGPrep develop cea86f8, both checkouts pulled before the run). EEGLAB on the left, EEGPrep on the right, same scale.
Activity
claude commentedon Nov 28, 2026
🤖 Plan:
pop_rerefand 0-basedreref, one eligible channel, excluded explicit reference)rerefreturns samples unchanged when no channel is eligible (asreref.mdoes, with its 0x0 refmatrix).pop_rerefwarns and returns the dataset unchanged, keepingEEG.ref,chanlocs.refand ICAresources/help/pop_reref.mdanddocs/source/api/interactive_pop_workflows.rst. EEGLAB relabels the legacyEEG.refas average and drops ICAarnodelorme commentedon Nov 28, 2026
🤖 Linux comparison, November 28. Both Re-reference the data dialogs opened on jamming. With reference electrode 1, 8, or 16, the EEG output samples matched exactly in all three cases. These cases used an explicit electrode. The all-channels-excluded average-reference case tracked here still needs its own result.
The Mac and Windows captures are scheduled for the overnight pass. The Linux checkouts were EEGLAB 7ba2370cff and EEGPrep 2558e8eef2.
[pop_reref] Leave the dataset unchanged when every channel is excluded (
arnodelorme commentedon Nov 29, 2026
Arno's feedback of November 29, 2026 on the seven-menu report: the pop_reref window still differs from EEGLAB.
Arno's words
— orchestrator
arnodelorme commentedon Nov 29, 2026
The feedback above is now its own issue, following rule 33 of the GUI parity rules: #876
— orchestrator
arnodelorme commentedon Nov 29, 2026
Pull request #878 (dialogs laid out as EEGLAB's supergui does) was merged into develop on November 29, 2026. The pop_reref window is now on the new layout. Its graphical part may be solved; the numerical part is not affected. It is labeled maybe-done and will be checked in the full rerun of every dialog on jamming, then closed if the captures match EEGLAB.
— orchestrator
arnodelorme commentedon Nov 29, 2026
🤖 The window part is now close to EEGLAB; this function issue stays open for the numbers (rule 17) and loses the maybe-done label.
Rerun of every dialog on Linux after pull request #878 was merged (jamming, EEGLAB develop 5e0be870, EEGPrep develop cea86f8, both checkouts pulled before the run). EEGLAB on the left, EEGPrep on the right, same scale.
Report (PDF and Word): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/all-dialogs-2026-11-29
— eegprep worker