Repository navigation
Backlog
Labels
gui-parityWindow of EEGPrep against EEGLAB's (Arno's report comments)laterParked until Arno removes the label
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_chanedit, the Edit menu item "Channel locations", from the Edit menu report of November 26, 2026 (EEGPrep develop df89e80 against EEGLAB develop 16cc13212, jamming under Xvfb).
- Where it stands: compared with EEGLAB, the window has different controls, wording or defaults; 7 findings of the Edit menu report to settle.
- Numerical tests: N32 to N44: 6 identical, 3 differ (N37
EEG.ref, F1; N39topo2allX, Y, Z and sph_radius, F14; N40nosedir, F4), 2 stop with an error in EEGPrep only (N42 and N43, range as text, F1), 2 stop with an error in both (lookup with a bare file name, not a difference). - Report and pull request: the Edit menu report issue EEGPrep versus EEGLAB, Edit menu: side-by-side captures on jamming, numerical tests and PDF and Word report #711, no pull request yet for this function; the findings summary is EEGPrep versus EEGLAB, Edit menu: side-by-side captures on jamming, numerical tests and PDF and Word report #711 (comment)
- Progress tracking: in
adelorme-assistant/project_eegprep, not here: https://github.com/adelorme-assistant/project_eegprep/blob/main/tracking/functions.md - Next step: waits for Arno's comments on the Edit menu Word file; the Edit menu is parked (
later) while he works on the File menu.
Findings of the report for this function
- F1:
'settype'and'setref'with a channel range as text ('1:10'), the form EEGLAB writes in its history, raise ValueError in EEGPrep. With numbers,'setref'leavesEEG.refatcommon(EEGLAB:Cz). Blocks the user. - F4:
'nosedir': EEGLAB rotates the coordinates and stores+X, EEGPrep stores+Yand does not rotate. Decision needed. - F12: Values shown:
sph_radius1 where the file has none, urchan index 0 where the file stores 1,-0, five digits. Extra edit box for Reference. - F15: Edit boxes and checkboxes do not line up vertically (rule 9 of the GUI rules).
- F17: Three buttons lose their
&(Qt shortcut mark) and their capital letter. - F18: A ticked checkbox is drawn as a tick with no box. To check on the Mac.
- F24: History: no
eeg_storeline after an edit in place,pop_newsetshown or not, and EEGLAB writes invalid lines on Ok with nothing typed.
F15, F16, F18, F21 and F24 are shared by several windows: fix them here only for this function's window, under the GUI rules of project_eegprep (rules/gui-parity.md).
Files
- Report (PDF and Word): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/edit-menu-2026-11-26
- Edit menu issue: EEGPrep versus EEGLAB, Edit menu: side-by-side captures on jamming, numerical tests and PDF and Word report #711
- Captures and numerical outputs:
/mnt/v1/arno/menu_tests/editon jamming.ucsd.edu (numerical/results.mdlists every quantity).
Metadata
Metadata
Assignees
Labels
gui-parityWindow of EEGPrep against EEGLAB's (Arno's report comments)laterParked until Arno removes the label
Activity
claude commentedon Nov 27, 2026
🤖 Plan:
pop_chaneditor pop_chanedit (Edit > Channel locations): graphical and numerical parity with EEGLAB #728later, and its next step waits for Arno's review of the Edit menu Word file. F4 and F24 need decisions first. The 7 GUI findings plus 3 numerical differences go past the scope of one small fix (<100 lines).Research
F1 is the only finding that blocks users and is clearly a bug.
_index_value_argspasses the range straight to_indices, which callsfloat('1:10')and raises ValueError. EEGLAB runsstr2numon a string range first. With numeric indices,setrefwrites onlychanlocs[i]['ref']. Nothing copies a shared per-channelrefintoEEG.ref, soEEG.refstayscommon. In EEGLAB,eeg_checksetsetsEEG.refwhen all channels share oneref. I couldn't confirm that line becausesrc/eegprep/eeglab/isn't in this checkout. F4 (nosedir) only stores the string and never rotates X/Y. Bothnosedirandplotradare stored withchaninfo[key] = value.Relevant code
pop_chanedit.py#L727-L736-settype/setrefhandlerspop_chanedit.py#L879-L899-_indices/_index_value_args, no string-range parsingpop_chanedit.py#L735-L736-nosedirstored, not rotated (F4)pop_chanedit.py#L692-L699- lookup forcesnosedir+Xpop_chanedit.py#L77-L229- dialog spec (F12, F15, F17, F18)Proposed Fix
I suggest splitting the work into separate PRs once the
laterlabel is removed:_index_value_args, parse a string index with the MATLAB range syntax ('1:10','1 3 5') before_indices. Aftersetref, setEEG['ref']to the sharedrefvalue when every data channel has the same one, matching EEGLAB. Write the regression test for N37, N42 and N43 first, intests/test_pop_chanedit.py.+X, keep the original inchaninfo) or keep EEGPrep's current behavior and document it. I'd match EEGLAB.topo2all: first compare EEGPrep'sconvertlocswith EEGLAB'stopo2sph/sph2cartsph_radiusdefault. F12 (sph_radius1 where the file has none) suggests the same cause, so fix them together.eeglab-gui-visual-parityskill and the project_eegprep GUI rules.eeg_store/pop_newsethistory lines should look.Open questions for Arno: F4 direction (rotate like EEGLAB?), the F24 history format, and whether the extra Reference edit box (F12) should go.
suraj-ranganath commentedon Nov 28, 2026
Two findings on develop (
aa81d9ab) with the continuous tutorial dataset:Verify the labeled map is visible while the editor is open. Close the map, continue editing and check both Ok and Cancel. This stays with the parked Edit work in #711. pop_chanedit.m L383 · pop_chanedit.m L404 · plot_utils.py L36
arnodelorme commentedon Dec 1, 2026
🤖 The current Linux GUI comparison is in #947, with the implementation and native before/after evidence in PR #944.