Repository navigation
Description
Arno, November 27, 2026: "I do not want to fix the height. I want something that is general and based on the content. So the row should have a constant height based on the platform sometimes, Like it is in MATLAB." The window of pop_importdata had a height chosen by hand (480 pixels, then 385 and 430 in pull request #776).
- Now in [GUI] Size a dialog from its rows, one row height per platform, never shorter than its content #776: a window without a height is as high as its rows, as EEGLAB's
superguidoes. Every row has the same height: the platform minimum (28 pixels), raised to the tallest one-line control plus the gap (31 pixels on Linux, 30 on the Mac).pop_importdatahas no height of its own: 471 pixels on Linux, 454 with the Mac style. - Status: ready for review, not merged. The real Mac window of this version comes tonight.
Graphics
On Linux (jamming): EEGLAB, EEGPrep before, EEGPrep after.
With the Mac style (drawn without opening a window, today): develop at 480 pixels, after at 454 pixels: 13 rows of 30 pixels (edit box 26 plus a gap of 4). The real Mac window comes tonight.
Numerical difference with EEGLAB
All 10 test cases give exactly EEGLAB's result: the data (distance 0), the sampling rate, the numbers of channels, points and epochs, the start and end times, the channel labels and coordinates, and the dataset fields. No case fails. This pull request changes the window only, so these numbers are those of develop.
History of this issue
- November 27, morning, on the Mac: "pop_importdata GUI still has a lot of vertical blank space below the text and the buttons to cancel and ok." The window was fixed at 1150 by 480 and its 13 rows shared that height.
- First version: the content set the height with tight rows (385 pixels). His answer: "Before too much space between the rows. After it doesn't have enough. Something in the middle would be great for Mac."
- Second version: a fixed 430 pixels. His answer is the quote on top: no fixed height, a row height per platform.
How the numbers were obtained
- Test cases: float32 little endian continuous and epoched (xmin -1 and 0), float32 big endian, ASCII text, MATLAB file with and without the number of channels, with a channel location file, with the dataset fields (name, subject, condition, group, session, comments), and 16 channels at 500 Hz. All are made from the real sample files
eeglab_data.fdt,eeglab_data_epochs_ica.fdtandeeglab_data_epochs_ica.set. - Both programs: EEGLAB develop with MATLAB R2025b and EEGPrep develop (395f19e; the import code has not changed since, up to 2558e8e), the same call on the same file, on jamming.
- Distance: the largest absolute difference between the two outputs divided by the largest absolute value of EEGLAB's output. Tolerance 1e-12. Counts, labels and text fields must be the same.
- Scripts:
notes/file-menu-row-height-2026-11-27/scriptsof adelorme-assistant/project_eegprep (numeric_ref.m,numeric_py.py,histogram.py).
Part of #737



Activity
claude commentedon Nov 27, 2026
🤖 Plan:
test_importdata_rows_share_the_window_height_and_show_the_chanlocs_notewith the height and blank-row checkssize=(1150, None)inpop_importdata.py#L258- fixed 480 px heightspec.size[1] is not Noneinqt.py#L926-L931-_rows_share_height, same line as [GUI] Restore pop_chanevent blank rows and align its notes #773tests/test_bdf_records_eeglab_tests.pyformatting (also failing on develop, fixed by [CI] Add the blank line ruff format expects in the BDF tests #766), which skips the test matrix. The new GUI assertions have not run anywhere yet (no libEGL on this runner); rerun [GUI] Size a dialog from its rows, one row height per platform, never shorter than its content #776 CI after [CI] Add the blank line ruff format expects in the BDF tests #766 merges.arnodelorme commentedon Nov 27, 2026
🤖 Ready in pull request #776 (opened by the automatic agent, reviewed, one commit added to remove a changelog conflict with #773). The window takes the height of its content: 389 pixels on jamming, 385 with the Mac style, where EEGLAB's is 450. Captures in #776 and in #737.
arnodelorme commentedon Nov 27, 2026
🤖 New height in pull request #776, after Arno's answer ("Before too much space between the rows. After it doesn't have enough. Something in the middle would be great for Mac."): the window is now 1150 by 430 pixels, between the 480 of develop and the 385 of the first version. The rows share that height again, so the pull request no longer touches the shared code. Real windows on the Mac and jamming captures, at 480, 385 and 430, are in #776. Not merged.
arnodelorme commentedon Nov 27, 2026
Status on November 27, 2026, after Arno's answer: the fixed height of 430 pixels is dropped.
superguitakes it, in the shared layout code, so every window is captured before and after.The rule is number 26 of the EEGPrep GUI rules (27 to 32 are the new rules for pull requests, issues and reports): https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md
— orchestrator
[-]pop_importdata window: too much vertical blank space, let the content set the height[/-][+]pop_importdata window: no fixed height, the rows set it with one row height per platform[/+][GUI] Size a dialog from its rows, one row height per platform, never…
arnodelorme commentedon Nov 29, 2026
🤖 Final state (eegprep worker, November 29). Arno merged pull request #776 on November 28 with its last commit (309a643).
EEGLAB_ROW_HEIGHT(guifunc/theme.py), raised to the tallest edit box or popup of the window plus the gap, and given to each row as a layout strut, so a row is never shorter than its content. A larger font makes the rows and the window taller.pop_importdatahas no height of its own.pop_importdata471 pixels on Linux (rows of 31) and 454 with the Mac style (rows of 30), EEGLAB 450 on Linux. 13 of 127 dialog renderings changed size, 114 were identical.EEGLAB_ROW_SCALE), and [GUI] Lay out dialogs as EEGLAB's supergui does, with a geometry test suite of ten dialogs #878 added asuperguilayout that ten dialogs now use (notpop_importdata). The heights above are therefore those of the merge, not of today's develop.reports/file-menu-row-height-2026-11-27of project_eegprep.arnodelorme commentedon Nov 29, 2026
Done: Pull requests 776 (pop_importdata, a dialog without a height takes even rows from a per-platform minimum raised to its tallest one-line control, never shorter than its content) and 770 (pop_importepoch, one edit column with plain weights after develop's exact column shares), with sccn/eeglab 993, were merged by Arno on November 28 with my last commits. The status email was not sent: my session paused for 27 hours and Arno merged first, and develop has since changed row heights again (851, 878), so it would have been stale. The final state is recorded on issues 775 and 769, and the report (state of the merge) is committed in project_eegprep. Links: #776 #770 sccn/eeglab#993
Pull request: #776
— eegprep, reported with orch done