Repository navigation
Done
Labels
gui-parityWindow of EEGPrep against EEGLAB's (Arno's report comments)
Description
Arno tested develop on his Mac on November 27, 2026: "pop_importepoch -> currently no alignment." Pull request #714 had aligned one row only. The window still had three different left edges for its edit boxes (405, 485 and 590 pixels on the Mac).
- Fix: one edit column for the whole window, in EEGPrep (pull request [GUI] Put every pop_importepoch edit box in one column #770) and in EEGLAB ([GUI] Put every pop_importepoch edit box in one column eeglab#993).
- Status: both ready for review, not merged. Arno has not commented on them yet.
Graphics
On Linux (jamming): EEGLAB before and after (sccn/eeglab#993), EEGPrep before and after.
On the Mac (real window): develop, then this pull request.
Numerical difference with EEGLAB
9 of 10 test cases give exactly EEGLAB's events (types, latencies, durations, epoch numbers). This pull request changes the window only, so these numbers are those of develop.
- default time unit (fails): the same 159 events, with the same types, latencies and epoch numbers, but in another order. Without a time unit the latencies of the file are read as samples, so they fall after the end of their epoch. EEGLAB then sorts all events by latency, EEGPrep keeps them grouped by epoch.
- In orange (9 cases): the numbers are the same, and EEGPrep's
EEG.epochhas one more field than EEGLAB's,eventurevent.
The geometry
- EEGLAB: every row with an edit box or a checkbox uses
[2.5 1 0.6], and the file row[1.5 1 1.6], so that its edit box starts at the same place, after the Browse button. - EEGPrep:
[2.5 1 1]for every row (its hints are longer than EEGLAB'sNOTE), and[1.5 1 2]for the file row.
How the numbers were obtained
- Test cases: a text file with and without a header line, the time unit in milliseconds and in seconds, a duration field, a type field, old events kept, a numeric array in place of a file, two latency fields, the default time unit, and no latency field. All are made from the real sample files
eeglab_data.fdt,eeglab_data_epochs_ica.fdtandeeglab_data_epochs_ica.set. - Both programs: EEGLAB develop with MATLAB R2025b and EEGPrep develop (395f19e; the import code has not changed since, up to 2558e8e), the same call on the same file, on jamming.
- Distance: the largest absolute difference between the two outputs divided by the largest absolute value of EEGLAB's output. Tolerance 1e-12. Counts, labels and text fields must be the same.
- Scripts:
notes/file-menu-row-height-2026-11-27/scriptsof adelorme-assistant/project_eegprep (numeric_ref.m,numeric_py.py,histogram.py).
Part of #738
Metadata
Metadata
Assignees
Labels
gui-parityWindow of EEGPrep against EEGLAB's (Arno's report comments)



Activity
claude commentedon Nov 27, 2026
🤖 Plan:
tests/test_stream9_gui_importers.py)src/eegprep/functions/popfunc/pop_importepoch.pytests/test_bdf_records_eeglab_tests.pyformatting. That file is not in this PR and already fails on develop. The failure skips the unit-test jobs, so the new Qt test has not run yet.@arnodelorme pushed 0766cff to #770. It replaces the first geometry (
[1.5 1 1.6]/[2.5 1 0.6]) with[1.708 1 1.792]/[2.5 1 1], keeps hints and labels whole, and updates the PR description. That commit is now the current state of the PR.arnodelorme commentedon Nov 27, 2026
🤖 Ready in pull request #770 (opened by the automatic agent, corrected by the eegprep worker) and sccn/eeglab#993 for EEGLAB. Every row has one edit column in both programs. The agent's first version copied EEGLAB's weights, which in EEGPrep left the file box 43 pixels to the left and cut a hint and the long label: the measured version is on its branch (commit 0766cff). Captures in #770 and in #738.
arnodelorme commentedon Nov 27, 2026
🤖 Captures added for Arno to judge: the real window on the Mac and jamming, before and after, are in pull request #770, and in sccn/eeglab#993 for EEGLAB. develop is merged into #770 so its format check passes. Not merged.
arnodelorme commentedon Nov 27, 2026
Status on November 27, 2026: still in progress, waiting for the captures in the pull request itself.
EEGLAB part: sccn/eeglab#993
— orchestrator
[GUI] Put every pop_importepoch edit box in one column (sccn#770)
arnodelorme commentedon Nov 29, 2026
🤖 Final state (eegprep worker, November 29). Arno merged pull request #770 on November 28, and sccn/eeglab#993 the same day.
pop_importepochrow with an edit box or a checkbox uses[2.5 1 1]and the file row[1.5 1 2], so the eight boxes start at the same pixel. The correction weights of the first version were dropped (commit 3d1345e, inside what was merged): since develop's commit 9ada0ae every control sits at its exact share of the row, as in EEGLAB, and the test is strict again (2 pixels at any width).EEG.epochhas one more field,eventurevent. Neither has its own issue yet.