You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_importdata window: text squeezed and the channel location note missing (shared layout) #700
Arno commented the File menu report of #696 (EEGPrep versus EEGLAB, side-by-side captures) on November 26, 2026; this issue is one of his comments, with one pull request to address it.
Window: 3.2 Import data > Using EEGLAB functions and plugins > From ASCII/float file or MATLAB array (findings F17)
What to do: Find why supergui/inputgui squeeze the text column, fix it in the shared layout code, and add EEGLAB's note on channel locations ("use menu Edit > Channel locations ..."). Because the fix moves other windows, capture every window of the File menu before and after, not only this one.
Done when: a pull request on a branch agent/issue-<n> of develop, with captures before and after the change next to EEGLAB's, in a Word file and the same content as a PDF (rule 14), linked from the pull request. Arno merges.
On the Python side, the text is too compressed. It doesn't take the entire window like the MATLAB side. Also, the note is missing on the Python side (for the channel location side). Note this is a delicate fix because it will affect many other graphical interfaces. It is an important one, though.
The windows are opened on jamming (MATLAB R2025b and EEGPrep under Xvfb, /mnt/v1/arno/menutest_probe shows how), never on Arno's Mac in the daytime. Capture EEGLAB's window, EEGPrep's before and EEGPrep's after; put the three side by side. Run the tests of the functions touched (pytest) before opening the pull request.
Fetch issue, research layout code, duplicate-work preflight (no open PRs touching pop_importdata/supergui)
Human review of proposed approach. No PR opened: this changes the shared layout used by every inputgui dialog, and the definition of done needs before/after captures of all File menu windows on jamming plus a Word/PDF report. This runner can't produce those.
Research
DialogRenderer has two ways to lay out a row. By default it adds each control with a Qt stretch factor (weight*100) and keeps the widget's normal size policy. Qt then gives each label and edit box its size hint first and splits only the leftover width by stretch, so columns follow their content instead of the geometry weights that supergui.m uses. The opt-in weighted_columns=True mode (size policy Ignored + _supergui_stretch) already reproduces supergui widths. Only 5 dialogs use it (pop_importevent, pop_importepoch, pop_importerplab, pop_erpimage, pop_editoptions), and pop_importdata is not one of them. The channel-location note row is missing from the spec.
Shared fix (what Arno asked for): make supergui weighting the default in DialogRenderer. Set weighted_columns to True, then remove the flag and the stretch branch. Fix any dialog whose geometry depended on content sizing. Every inputgui-based window moves, so this needs the full File menu before/after capture run on jamming.
Local fix: set weighted_columns=True in pop_importdata_dialog_spec only. Small and low risk, but other dialogs stay squeezed.
With either option, add EEGLAB's note as a text row after the chanlocs row in pop_importdata.py (one more geometry entry 1). Use the exact string from pop_importdata.m ("... use menu Edit > Channel locations ..."), and update resources/help/pop_importdata.md if needed.
Open questions: option 1 or 2? Should the note text be copied word for word from pop_importdata.m on EEGLAB develop? Who runs the jamming capture/report step that rule 14 requires?
Pull request: #722 ([GUI] Share dialog height among rows and add the pop_importdata note). Cause: a dialog with a fixed size stacked its rows at the top and left the spare height empty, where supergui shares the height among the rows. The shared fix is about twenty lines of guifunc/qt.py (option 1 of the plan above, limited to the height). pop_importdata also gets the note and weighted columns (option 2, for this dialog only). Every File menu window was captured before and after: 21 of 27 identical, 6 changed. Across all menus 49 dialogs change the same way. Full test suite on jamming: no test changed its result. Report: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-700/issue-700_before_after.pdf (Word file next to it). This is the delicate one: merge it after the others. Arno merges.
Done: File menu comments of Arno (issues 699 to 710, 708 skipped): ten pull requests are open with EEGLAB, before and after captures from jamming, a Word file and a PDF each (712, 713, 714, 715, 716, 717, 719, 720, 721, 722), and one email sent with the combined Word file and PDF. Issue 701 (pop_biosig) is done and reported but has no pull request: its commit reached sccn/eegprep develop by mistake through repo-push, as did the EEGLAB half of 704 on sccn/eeglab develop. Revert pull requests 718 (eegprep) and 988 (eeglab) wait for Arno's decision (alerts 1027 and 1029). Nothing merged.
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
pop_importdata/supergui)inputguidialog, and the definition of done needs before/after captures of all File menu windows on jamming plus a Word/PDF report. This runner can't produce those.Research
DialogRendererhas two ways to lay out a row. By default it adds each control with a Qt stretch factor (weight*100) and keeps the widget's normal size policy. Qt then gives each label and edit box its size hint first and splits only the leftover width by stretch, so columns follow their content instead of the geometry weights thatsupergui.muses. The opt-inweighted_columns=Truemode (size policyIgnored+_supergui_stretch) already reproduces supergui widths. Only 5 dialogs use it (pop_importevent,pop_importepoch,pop_importerplab,pop_erpimage,pop_editoptions), andpop_importdatais not one of them. The channel-location note row is missing from the spec.Relevant code
src/eegprep/functions/guifunc/qt.py#L240-L255- weighted vs default stretch branchessrc/eegprep/functions/guifunc/qt.py#L894-L902-_supergui_stretch, supergui width formulasrc/eegprep/functions/guifunc/spec.py#L83-L86-weighted_columnsflag, default Falsesrc/eegprep/functions/popfunc/pop_importdata.py#L186-L218- chanlocs rows, geometry, size=(1000, 480)Proposed Fix
Two options; a human should pick one:
DialogRenderer. Setweighted_columnsto True, then remove the flag and the stretch branch. Fix any dialog whose geometry depended on content sizing. Everyinputgui-based window moves, so this needs the full File menu before/after capture run on jamming.weighted_columns=Trueinpop_importdata_dialog_speconly. Small and low risk, but other dialogs stay squeezed.With either option, add EEGLAB's note as a
textrow after the chanlocs row inpop_importdata.py(one more geometry entry1). Use the exact string frompop_importdata.m("... use menu Edit > Channel locations ..."), and updateresources/help/pop_importdata.mdif needed.Open questions: option 1 or 2? Should the note text be copied word for word from
pop_importdata.mon EEGLABdevelop? Who runs the jamming capture/report step that rule 14 requires?arnodelorme commentedon Nov 26, 2026
Pull request: #722 ([GUI] Share dialog height among rows and add the pop_importdata note). Cause: a dialog with a fixed size stacked its rows at the top and left the spare height empty, where supergui shares the height among the rows. The shared fix is about twenty lines of guifunc/qt.py (option 1 of the plan above, limited to the height). pop_importdata also gets the note and weighted columns (option 2, for this dialog only). Every File menu window was captured before and after: 21 of 27 identical, 6 changed. Across all menus 49 dialogs change the same way. Full test suite on jamming: no test changed its result. Report: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-700/issue-700_before_after.pdf (Word file next to it). This is the delicate one: merge it after the others. Arno merges.
arnodelorme commentedon Nov 26, 2026
Done: File menu comments of Arno (issues 699 to 710, 708 skipped): ten pull requests are open with EEGLAB, before and after captures from jamming, a Word file and a PDF each (712, 713, 714, 715, 716, 717, 719, 720, 721, 722), and one email sent with the combined Word file and PDF. Issue 701 (pop_biosig) is done and reported but has no pull request: its commit reached sccn/eegprep develop by mistake through repo-push, as did the EEGLAB half of 704 on sccn/eeglab develop. Revert pull requests 718 (eegprep) and 988 (eeglab) wait for Arno's decision (alerts 1027 and 1029). Nothing merged.
Pull request: #722
— eegprep, reported with orch done