Repository navigation
Description
Arno is testing EEGPrep against EEGLAB one menu at a time. The File menu was done in #696. On November 26, 2026 he said yes to the Edit menu, with the tests moved to the Linux server jamming so they can run at any hour, and later that day asked to keep the Edit menu report for later and just reference it while he works on the File menu.
- Where it stands: parked for later (
laterlabel added,needs-arnoandmenu-test-macremoved on November 26, 2026 so the Mac pass does not run while Arno works on the File menu). The Linux pass on jamming finished on November 26, 2026, and its PDF and editable Word report are saved inreports/edit-menu-2026-11-26/ofadelorme-assistant/project_eegprepand referenced from#696andproject_eegprep. Edit menu report folder: https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/edit-menu-2026-11-26. Summary of the 24 findings: EEGPrep versus EEGLAB, Edit menu: side-by-side captures on jamming, numerical tests and PDF and Word report #711 (comment) - What comes out: a PDF and an editable Word file with every Edit menu item side by side (EEGLAB left, EEGPrep right), the numerical comparisons and the findings, emailed to Arno and summarized here.
- What changed since the File menu: everything that opens a window runs on jamming under Xvfb (MATLAB R2025b
getframe, the Qt widget grab), in clones under/mnt/v1/arno/menu_tests, only the items common to both programs are tested, and the rules of Arno's comments apply. EEGPrep GUI rules: https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md - File menu issue (current focus):
#696 EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report: EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report #696
Questions and proposed fixes for when the Edit menu resumes
The Edit menu report is ready: EEGPrep_vs_EEGLAB_Edit_menu_2026-11-26.docx and the same content as PDF (32 pages), sent by email on November 26, 2026 and stored in reports/edit-menu-2026-11-26/ of project_eegprep. Summary and the 24 findings: #711 (comment)
- Comment the Word file, as for the File menu, and send it back or drop it in
reports/edit-menu-2026-11-26/. - Say which fixes to start. Proposed order: F2 and F3 (Event values: latency unit on insert and append, sort), F1 (channel ranges as text in
pop_chanedit), F5 (urevent table of Append datasets), F15 and F16 (straight columns and window size, rules 7 and 9), then F9, F10 and the labels. - Six decisions before any change: F4 (nose direction: rotate as EEGLAB or keep), F6 (default of Append datasets:
1or1 2), F7 (start time of epoched data: shift the event latencies or not), F8 and F11 (empty event box means all events or nothing), F13 (channel numbers from 0 or from 1 inpop_select), F23 (third Browse button of Dataset info). - Run the short Mac pass (
menu-test-mac) for native macOS graphics when ready, and decide whether the next menu (Tools) may run.
Differences from the File menu instructions (read first)
The steps below were written for the File menu night run on the Mac. For this menu: the windows are opened on jamming, not on the Mac, at any hour, with getframe and the Qt widget grab (no screencapture, no caffeinate), outputs are copied back to temp/menu_tests/edit/ of the Mac clone, items found in only one program are listed in one table and not captured further (rule 1), and the report is a PDF and a Word file with the same content (rule 14), also committed to reports/ of project_eegprep. Two changes to the report itself: differences in the titles of file choosers are not counted as wording differences (they say nothing about EEGPrep), and labels are compared as whole sentences, not as lines cut by wrapping. Say which reader each import uses.
Instructions (Edit menu), adapted from the Edit menu run of #696
Setup
- Work on the current
developofsccn/eegprep(update the clone with a fast-forward, or use a git worktree oforigin/developwhen the clone cannot be fast-forwarded) and on the currentdevelopof EEGLAB in~/GitHub/core_eeg/eeglab. A clone with local changes of Arno's is fast-forwarded only when that leaves them untouched, and is otherwise tested as it is: nothing is stashed, reset or discarded. Write down both commits, the MATLAB version, the Python and PySide6 versions and the macOS version: they go on the first page of the PDF. - Read
.agents/skills/eeglab-gui-visual-parity/SKILL.md(the MacBook path) anddocs/source/user_guide/visual_parity.rstbefore capturing anything. Useuv run --no-sync python tools/visual_parity/capture.py --listto see the cases that already exist. - Keep every output in
temp/menu_tests/edit/of the clone (screenshots, scripts, numbers, the PDF, aPROGRESS.md). Nothing generated is committed.
1. Inventory of the Edit menu
Export the Edit menu tree of both programs (labels, order, separators, enabled or greyed out) in the states startup, one continuous dataset, one epoched dataset, several datasets and a STUDY, with tools/visual_parity/matlab/export_eeglab_menu_inventory.m and tools/visual_parity/export_eegprep_menu_inventory.py. Do it for EEGLAB's default menu and for the full menu (eeglab full). The PDF gets one table: item, in EEGLAB, in EEGPrep, verdict (same, missing in EEGPrep, extra in EEGPrep, different label, different order, different enabled state).
2. Screen captures, every item
Capture the open Edit menu itself in both programs (case edit_menu). Then, for every item and sub-item of the Edit menu: call it in EEGLAB and capture what appears, then call the same item in EEGPrep and capture what appears. "What appears" is every window in turn: the file chooser, then the options dialog that follows once a real sample file is chosen, then any message or figure. Reuse the existing cases of tools/visual_parity/cases.json and write the missing ones in the output folder with the same pattern.
The MATLAB side uses the timer pattern of capture.py: a timer started before the menu callback takes the capture while the modal dialog is open, then unblocks or closes it. Use matlab -nosplash -nodesktop -r, never -batch, for windows. A real screen capture (screencapture) needs the lid open and the screen awake: hold it with caffeinate -d while capturing. When the screen cannot be captured, fall back to getframe in MATLAB and to the Qt widget grab in EEGPrep, which need no screen, and say in the PDF which method each picture used.
3. Same capabilities
For each item present in both, compare the two dialogs control by control: title, labels, order, default values, enabled state, the Help button, what Cancel does, and the command line written to the history (eegh in EEGLAB, the returned command in EEGPrep) after the same choices. Each difference becomes a numbered finding with a severity (blocks the user, wrong result, cosmetic) and the screenshot that shows it. Font rendering and native widget style are not findings.
4. Numerical tests
For each function the Edit menu calls that exists in both programs, run the same call with the same arguments on the same real sample file in MATLAB and in Python, and compare the two results field by field: the data (largest absolute and relative difference), sampling rate, numbers of channels, points and trials, xmin, xmax, times, the events (count, type, latency, duration), the channel locations (labels and coordinates) and the ICA fields when present. State the tolerance next to each number: integers, strings and counts must be identical, floating-point data read from a file is expected identical, and anything larger than 1e-12 relative is reported with its cause when it can be found. Real files only (the sample_data of both repositories and ~/GitHub/core_eeg/eeglab_testcases), no generated or mock data. Work on copies in the output folder.
5. The PDF and the report
One PDF, temp/menu_tests/edit/EEGPrep_vs_EEGLAB_Edit_menu_<date>.pdf (and the same as .docx): a first page with the date, the versions and a summary in plain words (how many items, how many identical, how many missing, how many with differences, how many numerical tests passed), the inventory table, one section per menu item with the two captures side by side and the differences under them, the numerical table, the numbered findings, and a last section "What to do next" with the items Arno should try by hand first, the fixes proposed in order, and the next menu (Tools). Email it to Arno as an attachment and post a short comment here with the same summary and the findings. No new issue and no code change in this run: fixes are proposed, and start when Arno says which.
Care
- Never change Arno's own EEGLAB preferences, plugins or files: open Preferences and the extension manager, capture, then cancel. Save and export only into the output folder. Never write into a
sample_datafolder. - Close only the MATLAB and Python processes this run started (keep their process numbers). A MATLAB session Arno left open is not touched.
- Capture windows only, never the whole screen: other windows of Arno's may be open, and nothing of them may reach a picture, the PDF or this issue.
- Never answer a macOS permission prompt. When one blocks the capture, use the fallback above and report it.
- A run is stopped after one hour and the next one resumes: update
PROGRESS.mdafter every item.
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
Research
This is not a code issue. It asks for a manual parity run: MATLAB R2025b and Xvfb captures on jamming, a PDF/Word report, and an email to Arno. It also says "No new issue and no code change in this run". This CI agent has no MATLAB, no jamming access and no EEGLAB checkout (
src/eegprep/eeglab/is empty here), so it cannot run this. The scheduledeegprep-menu-testjob (labelmenu-test) should handle it. No PR opened, and no overlapping open PRs found.Relevant code
src/eegprep/functions/guifunc/eeglab_menu.py#L118-L135- EEGPrep Edit menu definitiontools/visual_parity/cases.json-edit_menucase already existstools/visual_parity/export_eegprep_menu_inventory.py/matlab/export_eeglab_menu_inventory.m- inventory exportersProblems in the instructions (fix before the run)
pop_editset), Event fields (pop_editeventfield, full menu only), Event values (pop_editeventvals), Adjust event latencies (pop_adjustevents, full menu only), About this dataset (pop_comments), Channel locations (pop_chanedit), Select data (pop_select), Select data using events (pop_rmdat), Select epochs or events (pop_selectevent), Copy current dataset (pop_copyset), Append datasets (pop_mergeset), Delete dataset(s) from memory (pop_delset).pop_select,pop_rmdat,pop_selectevent,pop_mergeset,pop_adjustevents,pop_chanedit,pop_editeventvals) instead of importers and exporters.~/GitHub/core_eeg/eeglab, macOS version,caffeinate/screencapture). The collapsed note overrides this only in part.Ready for the
menu-testjob once item 1 is fixed.arnodelorme commentedon Nov 26, 2026
🤖 Edit menu test done on jamming (November 26, 2026, 12:30 to 12:55 pm PST). Report:
EEGPrep_vs_EEGLAB_Edit_menu_2026-11-26.pdf(32 pages) and the same content as.docx, emailed to Arno and stored inreports/edit-menu-2026-11-26/of project_eegprep. No code change, no new issue.What was compared: EEGPrep
developdf89e80 against EEGLABdevelop16cc13212, MATLAB R2025b Update 7, Python 3.12.13, PySide6 6.12.0, on jamming.ucsd.edu under Xvfb (getframefor EEGLAB, Qt widget grab for EEGPrep). The pictures show the Linux look; the Mac pass adds the native ones.Look at first: F2 (inserted events land at the wrong time), F1 (channel ranges as text refused by
pop_chanedit), F15 and F16 (columns not straight, rules 7 and 9).Findings (severity: B blocks the user, W wrong or different result, C cosmetic)
pop_chanedit'settype'and'setref'with a range as text ('1:10'), the form EEGLAB writes in its history, raise ValueError in EEGPrep. With numbers,'setref'leavesEEG.refatcommon(EEGLAB:Cz).pop_editeventvalsinsert and append: latency read in seconds by EEGLAB, stored as samples by EEGPrep. The urevent goes to the end of the table.pop_editeventvals'sort'has no effect in EEGPrep (resorted byeeg_checkset). EEGLAB fails on a two field sort.pop_chanedit'nosedir': EEGLAB rotates the coordinates and stores+X, EEGPrep stores+Yand does not rotate. Decision needed.pop_mergeset: urevent latencies of the second dataset shifted bypntsin EEGPrep only (continuous). No boundary urevent in EEGPrep (epoched).EEG.eventand data identical.1in EEGLAB,1 2in EEGPrep. Decision needed.pop_editset'xmin'on epoched data: EEGPrep shifts event latencies, EEGLAB does not (pop_editset.mline 339 writes intoEEG, notEEGOUT). Decision needed.pop_commentsline with the reflowed text.concatgives different line breaks.epochfield with a Delete box, EEGLAB hides it.pop_rmdat(EEG, [], [-1 1], 0)in EEGPrep. Cause not read.sph_radius1 where the file has none, urchan index 0 where the file stores 1,-0, five digits. Extra edit box for Reference.pop_selectchannel numbers count from 0 in EEGPrep (calls and history line), trials, points and events from 1. Documented in the docstring. Decision needed.eventdescriptionentry forduration, leading blanks of the latency description, urevent order after a latency edit, trailing empty slot ofpop_delset, empty keys of a boundary event,topo2allin EEGLAB.&(Qt shortcut mark) and their capital letter.latencyforLatency (sec)),2.0for2, extra line "Original value below".eeg_storeline in EEGPrep after an edit in place,pop_newsetshown or not after Select epochs or events and Delete dataset(s), two invalid lines written by EEGLAB on Ok with nothing typed.Not done: the open menu of MATLAB could not be captured (inventory table instead), and the sub-windows behind the buttons of the dialogs were not opened.
Next: the Mac pass (label
menu-test-mac) adds the native pictures. Arno comments the Word file and says which fixes to start. Next menu: Tools.arnodelorme commentedon Nov 26, 2026
Done: Edit menu test on jamming is complete: report (PDF 32 pages and Word) emailed to Arno, summarized with 24 findings in #711 (comment), Needs Arno section added, reports committed in project_eegprep (36ab00a, not pushed), labels switched to menu-test-mac and needs-arno. Menu identical (12 of 12 items), 70 numerical cases (35 pass, 30 differ, 5 errors), data samples identical. No code change. The Mac pass adds the native pictures next.
— eegprep, reported with orch done
arnodelorme commentedon Nov 26, 2026
Arno asked on November 26, 2026 to keep the Edit menu report for later and just reference it while he works on the File menu.
laterlabel and removedneeds-arnoandmenu-test-mac, so the Mac graphics pass will not run tonight and the issue waits quietly until the File menu work is finished.reports/edit-menu-2026-11-26/EEGPrep_vs_EEGLAB_Edit_menu_2026-11-26.docxand.pdf) in the File menu issue#696 EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report(EEGPrep versus EEGLAB, File menu: side-by-side screen captures, numerical tests and PDF report #696) and inadelorme-assistant/project_eegprep(https://github.com/adelorme-assistant/project_eegprep).— orchestrator
arnodelorme commentedon Nov 27, 2026
Arno asked on November 26, 2026 that each EEGLAB function get its own issue in sccn/eegprep, graphical and numerical, with the progress tracked in adelorme-assistant/project_eegprep. The 12 functions of this Edit menu report now each have one, labeled
gui-parityandlaterlike this issue, with their findings and numerical cases:pop_editset(Dataset info)pop_editeventfield(Event fields)pop_editeventvals(Event values)pop_adjustevents(Adjust event latencies)pop_comments(About this dataset)pop_chanedit(Channel locations)pop_select(Select data)pop_rmdat(Select data using events)pop_selectevent(Select epochs or events)pop_copyset(Copy current dataset)pop_mergeset(Append datasets)pop_delset(Delete dataset(s) from memory)Progress table: https://github.com/adelorme-assistant/project_eegprep/blob/main/tracking/functions.md
— orchestrator