Skip to content

[GUI] Fit event import settings to their contents - #917

Open
arnodelorme wants to merge 2 commits into
agent/issue-875-file-importepochfrom
agent/issue-875-file-importevent
Open

arnodelorme wants to merge 2 commits into
agent/issue-875-file-importepochfrom
agent/issue-875-file-importevent

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The pop_importevent dialog now uses the content-driven layout. On Linux its height changed from 342 to 300 pixels. EEGLAB measured 299.63 pixels. This change stacks on #915 (agent/issue-875-file-importepoch).

MATLAB, EEGPrep before and after

Window height and numerical distances

Cause and verification

The public form retains its input validation and file selection. The comparison imported three two-row event tables with different latencies. 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 #918. Part of #875.

Full inventory report for the project team. pop_importevent (p. 32). PDF · Editable Word.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Review before taking this out of draft.

State. The updated parent (#915) is merged in (77803907f). The Mac run passes and jamming passes 289 geometry tests.

What I checked. pop_importevent moves to the supergui layout and loses its fixed 1030 x 310 window. The recorded case is the continuous one and the form height matches EEGLAB within 1 pixel.

Small remark, not blocking. Only the continuous dataset is recorded. The epoched form has the same rows, so I do not ask for a second case.

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 37s —— View job


Code review

  • Overall assessment: Looks good. I found no bugs. The change sets layout="supergui" and removes the fixed size=(1030, 310) and weighted_columns=True from pop_importevent_dialog_spec. It also adds a geometry case, a MATLAB reference, a record_geometry.m entry, a height test and a docs line. All of these follow the pattern that [GUI] Fit epoch import settings to their contents #915 used for pop_importepoch.
  • Highest-risk area: The window width. The width now comes from the layout instead of the fixed 1030 px. The new test compares only the height, so any change in width is not tested. This matches how pop_export and pop_importepoch are tested.
  • Merge recommendation: Safe to merge after the parent [GUI] Fit epoch import settings to their contents #915 merges.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. Only the continuous case is recorded, and the epoched form has the same rows. I agree a second case is not needed.

EEGLAB parity notes

These are older differences, not something this PR caused. They are listed for a later fix:

  • Three hint labels in pop_importevent_dialog_spec (src/eegprep/functions/popfunc/pop_importevent.py:408-411) use different text from the EEGLAB uilist recorded in tools/gui_geometry/cases/pop_importevent.continuous.json:

    EEGPrep EEGLAB
    (lowercase latency field required) (latency field required above)
    If ms, 1E-3; if points, NaN Ex: If ms, 1E-3; if points, NaN

    The third is the "Event file or array" label: EEGLAB sets it to horizontalalignment right, and EEGPrep does not. The test checks only the height, so none of these differences fail it. Copying the EEGLAB strings would make the form match the reference screenshot word for word.

I checked for correctness bugs, EEGLAB parity, changed-behavior tests and AGENTS.md compliance. I could not run tests/test_gui_geometry.py -k importevent because this job's sandbox did not allow pytest. The PR body reports that the test passed on jamming and on the Mac run.

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