Skip to content

[GUI] Size 2-D scalp map controls from their contents - #980

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

arnodelorme merged 2 commits into
developfrom
agent/issue-875-plot-topoplot

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Size 2-D scalp map controls from their contents. The continuous window measured 300 px high in MATLAB, 444 px before the fix and 300 px afterward. Stack base is #977.

Continuous

Epoched

Displacement

Color limits of the rendered scalp map

Across 2 native openings, the largest vertical control offset was 0.69 px (target 1 px). Numerical comparison of color limits of the rendered scalp map: 2/2 measured cases within tolerance.

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

Fixes #981.

Full inventory report for the project team. pop_topoplot (p. 45). 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 47s —— View job


Code review

  • Overall assessment: Looks good. pop_topoplot_dialog_spec now uses the shared supergui layout and drops the hand-tuned size and geomvert. The recorded MATLAB cases show that EEGLAB passes an empty geomvert to inputgui, so dropping the old per-row heights matches EEGLAB. The new PUBLIC_CALLS entries call pop_topoplot(eeg, 1, renderer=...), which fits pop_topoplot's renderer parameter. No existing test checks the removed size or geomvert.
  • Highest-risk area: the component dialog (typeplot=0). It also lost its tuned geomvert and size, and there is no MATLAB reference recording for it.
  • Merge recommendation: Safe to merge. The test gap below is optional.

Blocking

None.

Important

None.

Nits

  • docs/source/api/interactive_pop_workflows.rst: the sentence "Component maps also show the dipole option." describes behavior that existed before this PR. It does no harm, but only the first sentence describes this change.

Test gaps

  • tools/gui_geometry/matlab/record_geometry.m records only the ERP dialog: pop_topoplot(EEG, 1) and pop_topoplot(EEGcont, 1).
    • The component dialog (typeplot=0) changed too. It has the extra 3-column dipole row ([1.55 0.2 0.8]), and this PR removed its old geomvert (1,1,0.5,1,1,1,0.2,1,1) and size (697, 440).
    • Neither test_pop_dialog_has_the_geometry_eeglab_passes_to_inputgui nor test_drawn_dialog_has_matlab_rows_and_aligned_edit_boxes covers it.
    • Suggested fix: add a 'pop_topoplot.component' case, such as @() pop_topoplot(EEG, 0) on a dataset with ICA weights, and a matching PUBLIC_CALLS entry pop_topoplot(eeg, 0, renderer=renderer). That checks the dipole row against MATLAB.

EEGLAB parity notes

None. For the ERP dialog, the geometry is (1.5, 1), (1,) twice, (1.5, 1) twice, then (1,) three times. This matches the geometry recorded from MATLAB in tools/gui_geometry/cases/pop_topoplot*.json. The PR changes no numerical output.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. I could not run tests/test_gui_geometry.py because the command needed approval in this job, so this review comes from reading the diff and the test harness.

@arnodelorme
arnodelorme changed the base branch from agent/issue-875-plot-eventstat to develop December 1, 2026 04:34
…ot-topoplot

# Conflicts:
#	tools/gui_geometry/matlab/record_geometry.m
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_topoplot: Size 2-D scalp map controls from their contents

1 participant