Skip to content

[GUI] Lay out the pop_interp dialog with EEGLAB's supergui - #950

Merged
arnodelorme merged 3 commits into
developfrom
agent/20261201-fix-935
Dec 1, 2026
Merged

arnodelorme merged 3 commits into
developfrom
agent/20261201-fix-935

Conversation

@claude

@claude claude Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

The Interpolate channel(s) dialog now uses the supergui layout instead of fixed window sizes, so the continuous window grows by its time range row and the epoched window stays shorter, as EEGLAB's geometry and geomvert give. The first row is bold as in pop_interp.m. No MATLAB capture on jamming was made from this runner.

Fixes #935

🤖 Generated with Claude Code

Replace the fixed window sizes and margins with the supergui layout so the
continuous and epoched windows take their height from EEGLAB's geometry and
geomvert, and bold the first row as pop_interp.m does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

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 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @claude[bot]'s task in 44s —— View job


Code review

  • Overall assessment: The code change is correct and matches EEGLAB. Before merge, the PR needs the side-by-side GUI comparison that AGENTS.md requires for GUI changes.
  • Highest-risk area: The window height and margins changed because of the switch to layout="supergui", and no visual parity capture checks it.
  • Merge recommendation: Needs changes (evidence only; no code edits needed).

Blocking

None.

Important

  • No side-by-side GUI comparison attached (PR body). AGENTS.md says: "When creating a PR that includes GUI changes, attach side-by-side GUI comparison images as GitHub user attachments using gh attach --comment." The body says no MATLAB capture was made. The change removes the hand-tuned size=(483, 327) / (483, 292) and content_margins=(23, 14, 25, 13), so the window size and padding now come entirely from supergui. Only a screenshot can confirm the result still matches EEGLAB.
    • Fix: run the existing cases pop_interp_dialog, pop_interp_removed_dialog and pop_interp_epoched_dialog from tools/visual_parity/cases.json on a host with MATLAB, then attach the EEGLAB vs EEGPrep pairs to the PR.

Nits

None.

Test gaps

None. test_dialog_rows_follow_eeglab_geometry_for_continuous_and_epoched_data checks behavior that the spec-only tests cannot see:

  • The rendered label is bold.
  • The popup and the time range edit share the [1.1 1] column split.
  • The continuous window is taller than the epoched one.

It follows the repo's existing Qt conventions: the offscreen default, pytest.mark.gui and cleanup of the dialog.

EEGLAB parity notes

None. I checked against functions/popfunc/pop_interp.m in sccn/eeglab:

  • Both branches set 'fontweight' 'bold' on the first row (L86 and L104).
  • geomvert is [1 1 1 1 1 1 1 1 0.5 1 0.5 1] for continuous data (L102) and [1 1 1 1 1 1 1 1 0.5 1] for epoched data (L117). Both match pop_interp_dialog_spec.
  • EEGLAB lays the dialog out with inputgui, so supergui is the right equivalent (L119).
  • The dialog matches the other pop dialogs already moved to supergui, such as pop_autorej, pop_eegthresh and pop_editeventfield.

I could not run the tests here because the runner denied uv run pytest. I am relying on the PR's CI for test results.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance.

# Conflicts:
#	docs/source/changelog.rst
@arnodelorme

Copy link
Copy Markdown
Collaborator

🤖 Second round on the review above: the side-by-side comparison it asked for, drawn on jamming (Linux, MATLAB R2025b with EEGLAB 5e0be870, EEGPrep at commit 989c9c1e, both from the recorded uilist).

Epoched data, EEGLAB on the left, EEGPrep on the right:

pop_interp, epoched: EEGLAB and EEGPrep

Continuous data (one more row for the time range):

pop_interp, continuous: EEGLAB and EEGPrep

Case Window width Window height Edit box left edge Control x Control y Control width Control height
pop_interp −0.7 0.0 0.0 1.1 0.4 0.7 0.7
pop_interp.continuous −0.7 0.0 0.3 1.1 0.4 0.7 0.3

Largest difference in pixels, EEGPrep minus EEGLAB. Both windows are 379 pixels high.

What is left of this pull request after merging develop: the dialog code is now identical to develop's, which received the same layout with its recorded cases on November 30 (commit 39a80065). This branch still adds the changelog line and the test of the drawn dialog (bold first row, shared column split, taller continuous window).

@arnodelorme arnodelorme left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This review was written by an AI assistant during a nightly check, not by Arno.

Code review

  • Overall assessment: No issues found. After merging develop (commit 39a80065, which landed the supergui dialog layout and recorded geometry cases for pop_interp), this branch adds the missing changelog.rst entry for #935 and an offscreen Qt test rendering pop_interp_dialog_spec directly across platforms.
  • Highest-risk area: None identified.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

EEGLAB parity notes

None.

Tests run in a detached worktree at 989c9c1ec7fb842c4c3a28b3dd1fed06967915cc:

  • PYTHONPATH=<worktree>/src .venv/bin/python -m pytest <worktree>/tests/test_pop_interp.py -v: 24 passed, 1 deselected in 10.90s.
  • PYTHONPATH=<worktree>/src .venv/bin/python -m pytest <worktree>/tests/test_pop_interp.py -m gui -v: 3 passed, 22 deselected in 10.88s.
  • PYTHONPATH=<worktree>/src .venv/bin/python -m pytest <worktree>/tests/test_gui_geometry.py -k pop_interp -v: 4 passed, 2 skipped (Linux reference pixel check) in 10.91s.
  • .venv/bin/ruff check and .venv/bin/ruff format --check on tests/test_pop_interp.py: passed.

Checked for correctness bugs, EEGLAB parity (functions/popfunc/pop_interp.m lines 83 to 118), data structure compatibility, tests for changed behavior, and CLAUDE.md/AGENTS.md compliance.

# Conflicts:
#	docs/source/changelog.rst
@arnodelorme
arnodelorme merged commit 32c4775 into develop Dec 1, 2026
6 checks passed
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.

[GUI] Match the pop_interp dialog to EEGLAB

1 participant