Skip to content

pop_importdata window: no fixed height, the rows set it with one row height per platform #775

Done

Description

@arnodelorme

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 supergui does. 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_importdata has 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.

pop_importdata on Linux: 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.

pop_importdata with the Mac style: before and after

Numerical difference with EEGLAB

pop_importdata, distance between EEGLAB and EEGPrep

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.fdt and eeglab_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/scripts of adelorme-assistant/project_eegprep (numeric_ref.m, numeric_py.py, histogram.py).

Part of #737

Activity

  1. added
    gui-parity
    on Nov 27, 2026
  2. claude commented on Nov 27, 2026

    @claude
    Contributor

    🤖 Plan:

  3. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 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.

  4. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 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.

  5. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    Status on November 27, 2026, after Arno's answer: the fixed height of 430 pixels is dropped.

    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

  6. changed the title [-]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[/+] on Nov 27, 2026
  7. added a commit that references this issue on Nov 28, 2026
    2fe5606
  8. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Final state (eegprep worker, November 29). Arno merged pull request #776 on November 28 with its last commit (309a643).

    • In develop: a dialog whose specification gives no height is as high as its rows, and every row has the same height. That height is the platform minimum in 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_importdata has no height of its own.
    • Numbers at the merge: pop_importdata 471 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.
    • Changed since by others: [GUI] Give dialog rows and push buttons more vertical space #851 made ordinary rows 10 percent taller (EEGLAB_ROW_SCALE), and [GUI] Lay out dialogs as EEGLAB's supergui does, with a geometry test suite of ten dialogs #878 added a supergui layout that ten dialogs now use (not pop_importdata). The heights above are therefore those of the merge, not of today's develop.
    • Numbers against EEGLAB: 10 of 10 test cases identical. The report (Word and PDF, state of the merge) is in reports/file-menu-row-height-2026-11-27 of project_eegprep.
    • Not done: the status email of November 28 was not sent, because Arno merged the pull request first. No real Mac window of this version was captured.
  9. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions