Skip to content

[GUI] Match the pop_subcomp window to its native rows - #949

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-936-subcomp
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-936-subcomp

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The Remove components dialog uses the recorded column widths for remove and retain, with the height fitted to its three rows. On jamming the maximum control-top error changed from 90.44 to 0.47 pixels. This PR stacks on #945.

pop_subcomp.epoched-triptych

distances

The three ICA comparisons remove component 1, remove components 2 and 5, and retain components 1, 3 and 6. All compare the full projected dataset. Maximum normalized distance across the three comparisons was 2.84e-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 135 passed in 0.64s. The native MATLAB R2025b run is separate from the Python test runner.

Fixes #936. Part of #875.

Full inventory report for the project team. pop_subcomp (p. 81). 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 23s —— View job


Code review

  • Overall assessment: Looks good. The pop_subcomp dialog now uses the supergui layout with the recorded [1] / [2 0.7] / [2 0.7] rows from pop_subcomp.m. This replaces the old hand-tuned size, content_margins and row_spacing. The new case in tools/gui_geometry/cases/pop_subcomp.json and the reference JSON are both pinned to EEGLAB commit 5e0be87. The case is registered in POP_CALLS and in record_geometry.m, so the geometry test runs through the public pop_subcomp(EEG, renderer=...) entry point.
  • Highest-risk area: None identified. The change only touches the dialog layout. The removal and projection code is unchanged, so EEGLAB numerical parity is not affected.
  • Merge recommendation: Safe to merge once the base PR [GUI] Match the pop_interp window to its native rows #945 is merged.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_pop_dialog_has_the_geometry_eeglab_passes_to_inputgui[pop_subcomp] compares the dialog spec built by the real call path against the MATLAB-recorded geometry.

EEGLAB parity notes

None. The multi-dataset note text (isinstance(EEG, list)) only changes a label and keeps the same row geometry, so the single-dataset recording also covers it.

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

@arnodelorme
arnodelorme changed the base branch from agent/issue-935-interp to develop December 1, 2026 04:27
…bcomp

# 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_subcomp dialog to EEGLAB

1 participant