Repository navigation
Description
[Release readiness] Stream 3: Scroll window
Context
This issue is one of 11 release-readiness streams for sccn/eegprep. The release goal is EEGLAB parity in the GUI and the numbers for everything except STUDY and third-party plugins (default / bundled plugins only: EEG-BIDS, ICLabel, clean_rawdata, dipfit, firfilt).
The audit (report eegprep_GUI_audit_2026-11-05.pdf, findings F1–F126 in findings.md) was run as a simulated user: hands-on GUI use of eegprep and EEGLAB side by side, with real datasets, plus numerical parity checks against MATLAB EEGLAB. EEGLAB was the pinned tree eeglab-8ac485f6 on the lab MATLAB machine (jamming, path ~/gui-parity/eeglab-8ac485f6), never modified. eegprep was develop at 0bda20da. Where the pinned tree lacked a plugin (Biosig, Fileio, neuroscanio, bva-io, Fieldtrip-lite, viewprops), comparisons against a bench copy are labelled non-pinned.
Of 144 in-scope menu items, 141 were tested hands-on in both GUIs. Not counted in that 141: Quit (not run, ends the session) and the two eegprep-only Plot items "View extended channel/component properties" (pinned EEGLAB has no viewprops; tested in eegprep only as F122).
This stream: Data scroll window (eegplot) interaction (size M). Findings assigned: F51, F52, F63, F80, F103, F106.
Files / functions owned (do not edit outside these without coordinating; see fix_streams.md):
guifunc/eegbrowser.py; sigprocfunc/eegplot.py; popfunc/pop_eegplot.py; menu_actions.py: _run_browser_accept_pop_action (1375-1411)
Dependencies / merge order: Independent; can start now. Unblocks the end-to-end sessions (b) and the inspection items.
Suggested tests from the stream plan: Qt tests that simulate mouse drags and clicks on continuous and epoched data and check winrej/reject marks; function test: eeg_eegrej region against the EEGLAB result recorded in session (b). MATLAB not needed.
Common datasets used in the audit (copies only; never the originals):
eeglab_data.set— continuous tutorial (32 ch, 128 Hz, 30504 pnts)eeglab_data_epochs_ica.set— epoched + ICA (80 epochs)eeglab_data_numerical_events.set— numerical event types- BrainVision set (
testbva.vhdr/ related) — 32 ch, 2112 pnts, 17 events test.bdf/test.edf— Biosemi / EDF samples- BIDS oddball sample for import/export
- Neuroscan
.EEG, BVA.mat, MFF folder, HDF5eeglab_data_hdf5.setwhere noted - Channel location files:
eeglab_chan32.locs,standard_1005.elc,standard-10-5-cap385.elp
Companion stream issues (together they cover F1–F126):
| Stream | Issue |
|---|---|
| 1 Data safety | #546 |
| 2 Dialogs and Edit selection | #548 |
| 3 Scroll window | #547 |
| 4 Signal processing | #549 |
| 5 Channel locations and re-reference | #550 |
| 6 Rejection numbers | #551 |
| 7 Plots and plot history | #552 |
| 8 ICLabel, component properties, DIPFIT | #553 |
| 9 Importers | #554 |
| 10 Export and BIDS | #555 |
| 11 Main window, menus, preferences, help | #556 |
Screenshots: image files for this stream are staged under
/workspace/gui-parity/issues/stream-03/and ready forgh issue edit --attach. Embedding via--attachfailed with the current fine-grainedGH_TOKEN(HTTP 403 onuploads.github.com). Runattach_screenshots.shwith a classic PAT that can upload user-attachments (or grant the fine-grained token Contents + attachments). Until then, screenshot filenames are listed under each finding.
Findings
Use the checkboxes to track progress. Full audit detail is carried over (not summarised away).
- [x] F51 — blocker — Tools > Inspect/reject data by eye (eegplot)
Finding (full audit text): Click-drag to mark a bad stretch raises AttributeError in eegbrowser.py:1077, so manual continuous rejection is impossible. EEGLAB marks and rejects normally.
Evidence / screenshots: F51_eegprep_20261105_011908.png, ml_eegplot_rej_20261105_020027.png
What needs fixing: Resolve the behaviour so eegprep matches EEGLAB for this item (GUI and numbers), unless EEGLAB is the buggy side — then keep the correct behaviour, document the difference, and lock it with a test. Add a regression test. Keep existing tolerances.
Screenshots (filenames; attach pending):
F51_eegprep_20261105_011908.png— F51: eegprepml_eegplot_rej_20261105_020027.png— F51: ml_eegplot_rej_20261105_020027
- [x] F52 — medium — eegplot Reject button
Finding (full audit text): Reject creates the new set silently (no pop_newset dialog, nothing in history). EEGLAB runs eeg_eegrej, adds history, then shows pop_newset.
Evidence / screenshots: F52_eeglab_newset.png, F51_eegprep_20261105_011908.png
What needs fixing: Resolve the behaviour so eegprep matches EEGLAB for this item (GUI and numbers), unless EEGLAB is the buggy side — then keep the correct behaviour, document the difference, and lock it with a test. Add a regression test. Keep existing tolerances.
Screenshots (filenames; attach pending):
F52_eeglab_newset.png— F52: EEGLABml_F52_eeglab_newset_20261105_020304.png— F52: EEGLAB
- [x] F63 — low — Inspect/reject data by eye
Finding (full audit text): eegprep opens the scroll window directly; EEGLAB first shows an instruction dialog (mark stretches, press REJECT).
Evidence / screenshots: F63_eegprep_eye_noinstructions_20261105_021417.png, F63_eeglab_eye_instructions.png
What needs fixing: Resolve the behaviour so eegprep matches EEGLAB for this item (GUI and numbers), unless EEGLAB is the buggy side — then keep the correct behaviour, document the difference, and lock it with a test. Add a regression test. Keep existing tolerances.
Screenshots (filenames; attach pending):
F63_eeglab_eye_instructions.png— F63: EEGLABF63_eegprep_eye_noinstructions_20261105_021417.png— F63: eegprep
- [x] F80 — low (to verify) — Plot > Channel/Component data (scroll)
Finding (full audit text): Event markers: EEGLAB colours event types differently (red/green); eegprep shows them all green.
Evidence / screenshots: F80_scroll_eventcolours_sbs.png, P_cscroll_sbs.png
What needs fixing: Resolve the behaviour so eegprep matches EEGLAB for this item (GUI and numbers), unless EEGLAB is the buggy side — then keep the correct behaviour, document the difference, and lock it with a test. Add a regression test. Keep existing tolerances.
Screenshots (filenames; attach pending):
P_cscroll_sbs.png— F80: EEGLAB vs eegprep side-by-sideF80_scroll_eventcolours_sbs.png— F80: EEGLAB vs eegprep side-by-side
- [x] F103 — high (blocker) — Tools > Reject data epochs > Reject by inspection (epoched eegplot)
Finding (full audit text): Clicking an epoch raises AttributeError at eegbrowser.py:1077 (same root as F51) and nothing gets marked. In EEGLAB, clicking marks epochs 2 and 4, then REJECT asks "Are you sure..." (Yes/No).
Evidence / screenshots: F103_rejinsp_marked_sbs.png, F103_rejinsp_after_sbs.png, P_F103rejinsp_dlg_eegprep_20261105_045849.png, F103rejinsp_marked_eegprep_20261105_045908.png, F103rejinsp_marked_eeglab_20261105_052420.png
What needs fixing: Resolve the behaviour so eegprep matches EEGLAB for this item (GUI and numbers), unless EEGLAB is the buggy side — then keep the correct behaviour, document the difference, and lock it with a test. Add a regression test. Keep existing tolerances.
Screenshots (filenames; attach pending):
F103_rejinsp_after_sbs.png— F103: EEGLAB vs eegprep side-by-sideF103rejinsp_after_reject_eeglab_20261105_052439.png— F103: EEGLABF103rejinsp_marked_eeglab_20261105_052420.png— F103: EEGLABF103rejinsp_open_eeglab_20261105_052345.png— F103: EEGLABF103_rejinsp_marked_sbs.png— F103: EEGLAB vs eegprep side-by-sideF103rejinsp_open_eeglab_20261105_052402.png— F103: EEGLAB
- [x] F106 — high (blocker) — Reject data using ICA > Reject by inspection
Finding (full audit text): Clicking raises the same AttributeError as F103. Components can't be marked by eye.
Evidence / screenshots: P_F106icainsp_dlg_eegprep_20261105_050115.png, F106icainsp_click_eegprep_20261105_050118.png
What needs fixing: Resolve the behaviour so eegprep matches EEGLAB for this item (GUI and numbers), unless EEGLAB is the buggy side — then keep the correct behaviour, document the difference, and lock it with a test. Add a regression test. Keep existing tolerances.
Definition of done
- Every finding checkbox in this issue is fixed (or explicitly documented as intentional / EEGLAB-only with a locked test).
- A regression test exists for each finding (Qt offscreen and/or function test as appropriate for the stream).
- Where numbers are involved: a numerical parity test against pinned EEGLAB
eeglab-8ac485f6on jamming. Do not loosen any existing tolerance — only Suraj or Arno may change tolerances; fix root causes instead. - Where EEGLAB itself is buggy: eegprep does the right thing; the difference is documented and locked with a test (documented-difference style).
- Error messages state what is wrong, which function hit it, and the exact fix (e.g. the
pip install eegprep[...]command). - No code comments that restate code or justify workarounds.
- Changelog entry for the stream.
- One PR against
develop, CI green (ignore the known-broken Claudereviewcheck). - Before merge, retest the same way as the audit: each finding's GUI flow is re-run hands-on in both eegprep and EEGLAB side by side, with before/after screenshots, plus the MATLAB parity / reference checks where this stream requires them; post the results on the PR.
- Merging requires Suraj's explicit approval (squash merge).
Dependencies and overlaps
Independent; can start now. Unblocks the end-to-end sessions (b) and the inspection items.
Shared hotspots (from fix_streams.md):
menu_actions.pyis split by method — only edit this stream's named methods.tests/eeglab_python_backend_xfails.pyandtests/parity_expected/: each stream adds/removes only its own entries.- Suggested merge order overall: S1 → S2/S9/S11 → S5; S7 → S8; S3/S4/S6/S10 independent.
References
-
Audit PDF:
eegprep_GUI_audit_2026-11-05.pdf(Suraj / Arno) -
Findings log:
findings.md(F1–F126) -
Stream plan:
fix_streams.md -
Pinned EEGLAB:
eeglab-8ac485f6
Screenshots (filenames; attach pending):
P_F106icainsp_dlg_eegprep_20261105_050115.png— F106: eegprepF106icainsp_click_eegprep_20261105_050118.png— F106: eegprep
Activity