Repository navigation
Description
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_importepoch, File menu: Import epoch info > From MATLAB array or ASCII file. 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: needs work. EEGLAB's wording (760, merged). Arno on the Mac, November 27: no alignment, the boxes started at three places. One edit column for every row in 770 (EEGPrep) and sccn/eeglab 993 (EEGLAB), both open.
- Numbers: close to EEGLAB. 9 test cases of 10 identical to EEGLAB. With no time unit the same events come in another order. EEG.epoch has one more field, eventurevent.
- What remains: Merge 770 and sccn/eeglab 993. Event order when a latency falls outside its epoch, and the extra epoch field eventurevent.
- Fixes (sub-issues): pop_importepoch window: align the "File input col names" row with the rows below (EEGLAB and EEGPrep) #704, pop_importepoch window: use EEGLAB's wording for three labels #758, pop_importepoch window: one edit column for every row (EEGPrep and EEGLAB) #769
- Open pull requests: [GUI] Put every pop_importepoch edit box in one column #770, [GUI] Put every pop_importepoch edit box in one column eeglab#993
- Menu issue: EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report #696. The progress of every function is in the table of https://github.com/adelorme-assistant/project_eegprep#progress-of-the-port
Graphics
The same change as a real window on the Mac: develop, then pull request 770.
One edit column for every row (issue 769). Linux: EEGLAB before and after (sccn/eeglab#993), EEGPrep before and after (pull request 770).
Numerical difference with EEGLAB
9 of 10 test cases give exactly EEGLAB's events. With no time unit the same 159 events come in another order: EEGLAB sorts all events by latency, EEGPrep keeps them grouped by epoch. In the 9 cases in orange the numbers are the same and EEGPrep's EEG.epoch has one more field, eventurevent.
Earlier captures
EEGPrep before and after (issue 704): the edit box of the first row is now above the others.
EEGLAB before and after the same two-line change of pop_importepoch.m.
EEGLAB's wording for three labels (issue 758, pull request 760, merged): EEGLAB, EEGPrep before, EEGPrep after.
November 27, issue 769: one edit column for every row. EEGLAB before and after (sccn/eeglab#993), EEGPrep before and after (pull request 770).
Captured on jamming under a virtual screen (EEGLAB with getframe, EEGPrep with the Qt widget grab), and on the Mac where said.
The window: what differs from EEGLAB
- The same misalignment existed in both programs (rule 11). EEGPrep is fixed (pull request 714, merged). For EEGLAB the first commit was reverted (Revert pop_importepoch geometry commit pushed to develop without review eeglab#988) and the change is now [GUI] Put every pop_importepoch edit box in one column eeglab#993, open.
- The wording differed from EEGLAB's in three labels, for example
Time unit (sec)againstLatency time unit rel. to seconds. Pull request 760 (merged) takes EEGLAB's wording. Arno, November 26: "Change EEGPrep then." - The end of EEGLAB's label,
(NaN -> samples), is true in neither program: with NaN both return NaN latencies. - EEGLAB shows the two labels on latencies and durations in bold, and
NOTEwhere EEGPrep gives a hint. Not changed. - Arno on his Mac, November 27: no alignment. Pull request 714 had aligned one row only and the boxes still started at three places. Pull request 770 and [GUI] Put every pop_importepoch edit box in one column eeglab#993 give every row one edit column.
The numbers: same file in both programs
- Not tested: no real epoch information file was at hand (case N18 of the File menu report was not run).
Files
- Before and after report (Word and PDF): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/pr-704
- File menu report with Arno's comments: https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/file-menu-2026-11-26
- Rules for the window work: https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md







Activity
claude commentedon Nov 27, 2026
🤖 Plan:
pop_importepochdialog with EEGLABfunctions/popfunc/pop_importepoch.m(develop)Research
Not actionable for an agent PR yet: both remaining items need a human (wording choice, a real data file). The three label differences are in the dialog spec; the hint column also differs.
Relevant code
src/eegprep/functions/popfunc/pop_importepoch.py#L293-L310- label and hint textsccn/eeglab functions/popfunc/pop_importepoch.m#L163-L178- EEGLAB labelsField containing time-locking event type(s)Field name containing time-locking event type(s)Time unit (sec)Latency time unit rel. to seconds. Ex: ms -> 1E-3 (NaN -> samples)Number of file header linesNumber of file header lines to ignore0 = no duration,Default: TLENOTEwith tooltip (helpstrdur,helpstrtype)Note: EEGLAB's
(NaN -> samples)text is misleading for this function.finputcheckrestrictstimeunitto[0 Inf], so NaN is rejected in EEGLAB; EEGPrep would just produce NaN latencies. If the EEGLAB label is copied verbatim, EEGPrep should reject NaN the same way.Proposed Fix
Once Arno picks the wording: copy the three EEGLAB labels into
pop_importepoch_dialog_spec(about 3 lines changed), ideally rebased on #714 so the two don't conflict. Keeping the EEGPrep hint text instead ofNOTEis a separate decision.For the numbers: run
pop_importepochon the same tab-separated file in both programs (for example, one row per epoch ofsample_data/eeglab_data_epochs_ica.setwith columnsEpoch RT Type,latencyfields={'RT'},timeunit=1e-3,headerlines=1). Then compareEEG.event(type, latency, epoch) andEEG.epochagainst MATLAB. A parity test can extendtests/test_file_menu_audit_673.py(File menu report case N18). Missing to proceed: the wording decision and a confirmed real epoch file, or approval to use the synthetic file above.arnodelorme commentedon Nov 27, 2026
Arno wrote on November 27, 2026: "pop_importepoch -> currently no alignment. This was fixed but reverted. There was one fix that did align everything, but I think then it was reverted, and I'm not sure why. I think the MATLAB version was also fixed. Double-check and try to find the issue."
Measured on develop, native Mac style, window 900 by 350
[1, 1, 1.86][2.5, 1, 1][2, 0.5, 0.5],[2, 0.3, 0.7]The bottom three rows keep EEGLAB's own geometry
[2 0.5 0.5], which EEGLAB does not align with the[2.5 1 0.6]rows either. No branch of sccn/eegprep holds a version where all rows share one column: the only two geometries in the history of the file are the one before #714 and the one after.— orchestrator
suraj-ranganath commentedon Nov 28, 2026
On develop (
aa81d9ab), load the tutorial epochs and importepochinfo.txtwith fieldsepoch RT cond, latency fieldRT, time unit 0.001, one header line and existing events retained. Accept once. The last two lines ofEEG.historyare identicalpop_importepochcalls.EEGLAB passes the returned command to dataset storage once. In EEGPrep the wrapper and the menu both append it. Record it in one place and keep the session's dataset-selection entry. After saving and reopening, check the new events and latencies and count one import line. A single console import should also give one line, and two deliberate imports should give two. eeglab.m L590 · pop_importepoch.m L133 · menu_actions.py L803
arnodelorme commentedon Nov 29, 2026
🤖 pop_importepoch: accept event information for a single selected sweep. #843
— EEGPrep worker (Codex)
arnodelorme commentedon Dec 1, 2026
🤖 New Linux layout finding for pop_importepoch, with before and after captures and numerical verification, is tracked in #916 and PR #915.