Skip to content

[GUI] Match the spline and 3-D head plot controls - #1019

Merged
arnodelorme merged 4 commits into
developfrom
agent/issue-875-plot-headplot
Dec 1, 2026
Merged

arnodelorme merged 4 commits into
developfrom
agent/issue-875-plot-headplot

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Match the spline and 3-D head plot controls. The epoched window measured 405 px high in MATLAB, 602 px before the fix and 405 px afterward. Stack base is #1017.

Epoched

Notice

Displacement

3-d head map color scale on a shared montage spline

Across 2 native openings, the largest vertical control offset was 0.60 px (target 1 px). Numerical comparison of 3-d head map color scale on a shared montage spline: 2/2 measured cases within tolerance. The previous build went straight to the setup form. The notice panel shows that form in the middle. The numerical chart compares the voltage limits passed to MATLAB’s displayed colorbar with EEGPrep’s colorbar limits. The earlier chart compared MATLAB palette indices and was replaced.

EEGLAB 5e0be870, EEGPrep after d9f84d34, clean Linux checkouts. Part of #875.

Fixes #1020.

Full inventory report for the project team. pop_headplot (p. 46). 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 1m 11s —— View job


Code review

  • Overall assessment: Looks good. The PR changes only the dialog: it adds the spline-file notice, moves the setup dialog to the supergui layout, and changes the default title and transform text. It doesn't change the plotting numbers.
  • Highest-risk area: the new accept_dialog Qt callback and the notice now shown before the setup dialog in _run_gui.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_headplot_without_spline_opens_a_notice_then_setup checks that the notice opens before the setup dialog. The geometry test still checks the setup dialog, because _CancelledDialog keeps the last spec it receives, which is the main dialog.

EEGLAB parity notes

  • The default title now matches the MATLAB recording. EEGLAB puts no space after ERP scalp maps of dataset: (tools/gui_geometry/reference/pop_headplot.json:480). For component maps the title comes out the same as before.
  • The transform text, built with %13.6g and stripped, matches the MATLAB num2str output recorded at reference/pop_headplot.json:354 for this montage. One difference: num2str makes its fields wider when the values are larger, for example the 1100 values of the mesh template, so the spacing can differ for other meshes. The plotted result is the same, since both the old :g format and the new one keep 6 significant digits.
  • The accept_dialog callback is connected after the button is placed in the dialog (qt.py:395-396), so source.window() gives the dialog.
  • The PR body reports that the 3-D head map color scale is outside tolerance in 0 of 2 cases, with differences of about 53 on a reference scale of about 58. This PR doesn't cause that. The plotting comparison was already failing before it, and it should get its own issue under Dialog geometry test suite on Linux: ten dialogs drawn from the same geometry in EEGLAB and EEGPrep, supergui reworked to match MATLAB #875.

Checked: correctness, EEGLAB parity of the dialog text and layout, the order of the dialogs and what happens on cancel, the changed tests, the Sphinx docs update, and compliance with CLAUDE.md and AGENTS.md.

@arnodelorme
arnodelorme changed the base branch from agent/issue-875-plot-comperp to develop December 1, 2026 07:24
@arnodelorme
arnodelorme merged commit 1d1cfb1 into develop Dec 1, 2026
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.

pop_headplot: Match the spline and 3-D head plot controls

1 participant