Skip to content

[GUI] Match the pop_interp window to its native rows - #945

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-935-interp
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-935-interp

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The interpolation dialog sizes its rows for the active recording. Continuous data includes the time-range controls, and the epoched dialog is shorter. On jamming the maximum control-top error changed from 76.99 to 0.54 pixels. This PR stacks on #942.

pop_interp.continuous-triptych

pop_interp.epoched-triptych

distances

The three spherical interpolation comparisons use real channels 2, 2 and 4 together, and 7 from the continuous sample. Maximum normalized distance across the three comparisons was 6.91e-07.

Verification and methods

The two public functions opened on the same sample inputs with clean EEGLAB and EEGPrep checkouts. For each numerical case the distance is the largest absolute error divided by the largest absolute MATLAB output. Tests on jamming reported 149 passed, 1 deselected, 6 warnings in 0.66s. The native MATLAB R2025b run is separate from the Python test runner.

Fixes #935. Part of #875.

Full inventory report for the project team. pop_interp (p. 71). PDF · Editable Word.

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

Copy link
Copy Markdown
Contributor

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


Code review

  • Overall assessment: Looks good. The change only touches the GUI. pop_interp_dialog_spec now uses the recorded supergui layout and drops the hard-coded size and content_margins, the same move [GUI] Match the pop_rejcont window to its native rows #942 made for pop_rejcont. The first heading is now bold, which matches the 'fontweight' 'bold' entry recorded in the MATLAB uilist (tools/gui_geometry/cases/pop_interp*.json). The epoched and continuous geometry and geomvert rows match the recorded cases one for one.
  • Highest-risk area: the dialog sizing in src/eegprep/functions/popfunc/pop_interp.py. It now comes entirely from inputgui_layout, and both variants are covered by the new tests/test_gui_geometry.py cases.
  • Merge recommendation: Safe to merge once [GUI] Match the pop_rejcont window to its native rows #942 lands. No interpolation code changed, so this does not need the EEGLAB reference run.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The two new POP_CALLS entries run the real pop_interp against the epoched and continuous sample sets, and compare positions with the native MATLAB R2025b references.

EEGLAB parity notes

None. I checked:

  • The control order, the bold heading and the time-range row, which appears only for continuous data.
  • The removed and epoched variants in tools/visual_parity/visual_capture.py. They rebuild the dialog from the spec and don't rely on the removed size.
  • test_stream4_signal_processing.py::test_f59_gui_empty_time_field_matches_unrestricted_interpolation. The timerange tag it uses is unchanged.

I checked for correctness bugs, EEGLAB parity, EEG data-structure compatibility, tests for the changed behavior, and AGENTS.md compliance. I couldn't run pytest or ruff because the job's tool permissions blocked them, so this review comes from reading the code only.

@arnodelorme
arnodelorme changed the base branch from agent/issue-934-rejcont to develop December 1, 2026 04:26
…terp

# Conflicts:
#	tests/test_gui_geometry.py
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