Skip to content

[GUI] Fit the data import form to its fields - #921

Open
arnodelorme wants to merge 3 commits into
agent/issue-875-file-importeventfrom
agent/issue-875-file-importdata
Open

arnodelorme wants to merge 3 commits into
agent/issue-875-file-importeventfrom
agent/issue-875-file-importdata

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The pop_importdata dialog now uses the content-driven layout. On Linux its height changed from 512 to 432 pixels. EEGLAB measured 431.65 pixels. This change stacks on #917 (agent/issue-875-file-importevent).

MATLAB, EEGPrep before and after

Window height and numerical distances

Cause and verification

EEGPrep retains its Python array input and automatic format detection. Window heights below are client geometry reported by each application. Three 3 × 8 arrays were imported at 128, 256 and 384 Hz. Samples, channel and point counts, and sampling rates were compared. All three numerical distances were exactly zero. The new public-function regression failed before the change and passed after it. Across the five File changes, 192 focused tests passed on jamming. Both checkouts passed the capture safeguards.

Closes #922. Part of #875.

Full inventory report for the project team. pop_importdata (p. 21). PDF · Editable Word.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Review before taking this out of draft.

State. The updated parent (#917) is merged in (9c861c6a4). On the Mac 235 tests pass and one fails, test_f10_reader_options_apply_selection_and_replay[pop_biosig], because BioSig is not installed on this Mac (it fails the same way on develop here). Jamming passes 292 geometry tests.

What I checked. pop_importdata moves to the supergui layout. The test of the weighted Qt spacing now builds its own old style form (layout="qt", weighted_columns=True), so the two layouts are tested apart, which is right. The new assertions compare the sampling rate box with the native MATLAB edit box height within 1 pixel and check that the text fits in the box.

No finding. Verdict: ready for review.

@arnodelorme
arnodelorme marked this pull request as ready for review December 2, 2026 05:49

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 39s —— View job


Code review

  • Overall assessment: Looks good. Only one line of runtime code changes: the pop_importdata form switches to layout="supergui" and drops size=(1150, None) and weighted_columns=True. The DialogSpec comment in guifunc/spec.py says supergui ignores both of those settings, so removing them is correct and leaves nothing unused.
  • Highest-risk area: Any test that depended on the old weighted Qt layout. That test, test_weighted_qt_field_height_and_column_gaps, now asks for layout="qt", weighted_columns=True itself. It still tests the weighted layout and no longer relies on how pop_importdata is configured, which is correct.
  • Merge recommendation: Safe to merge after its parent, [GUI] Fit event import settings to their contents #917.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_public_file_dialog_matches_matlab_height[pop_importdata] checks three things:

  • the window height against the new MATLAB reference (431.65 px);
  • the height of the sampling rate box against the native edit box;
  • that the box text is not clipped.

The test compares against native_edits[0], which is the globfile box, not the sampling rate box. In the reference every native edit box is 24 px tall, so the check is still valid.

EEGLAB parity notes

None.

  • No numbers change. The PR changes only the dialog layout: no import, sampling rate, channel or ICA handling is touched, so no MATLAB reference run is needed.
  • The geometry tuple has not changed. The new tools/gui_geometry/cases/pop_importdata.json contains that same geometry.
  • The record_geometry.m entry @() pop_importdata() opens the same no-argument dialog that the Python test opens through pop_importdata(renderer=...).
  • The vendored EEGLAB tree is not checked out in this CI job, so I could not open pop_importdata.m directly. The MATLAB reference JSON was used as the parity oracle instead.
  • The docs line in interactive_pop_workflows.rst follows the wording used for the sibling File dialogs.

I checked for correctness bugs, EEGLAB parity, data structure compatibility, tests of the changed behaviour, and compliance with CLAUDE.md and AGENTS.md. I reviewed head 9c861c6. I did not re-run the tests.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant