Skip to content

[GUI] Match the pop_multifit dialog on configured MRI data - #1025

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-993-multifit
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-993-multifit

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The component, threshold, fitting and plotting rows now use the native multiple-dipole layout. The largest vertical offset after the change was 0.55 px. This PR stacks on #1023.

pop_multifit.fit-triptych

distances

The three one-dipole fits used the same real MNI head model, electrode registration and recorded EEG. Their 3D positions differed by at most 1.95e−7 relative to the MATLAB output. Their residual variance fractions agreed within 2e−13.

Native captures and verification

The clean jamming capture verified the checkout imports before opening each window. Focused geometry and DIPFIT test results were 202 passed in 3.16s.

Fixes #993. Part of #875.

Full inventory report for the project team. pop_multifit (p. 83). 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 37s —— View job


Code review

  • Overall assessment: Looks good. The only behavior change is in pop_multifit_dialog_spec (src/eegprep/plugins/dipfit/pop_multifit.py:112): it now uses layout="supergui" instead of a fixed size=(560, 300). The geometry, control order, default values ('', '100', unchecked boxes, 'normlen' 'on') and disabled states for the plotting label, edit box and Help button all match the recorded MATLAB uilist in tools/gui_geometry/cases/pop_multifit.json. The new case is registered in record_geometry.m, it reuses the existing EEGfit fixture, and the parametrized tests in tests/test_gui_geometry.py cover it.
  • Highest-risk area: None identified. The fitting code path is unchanged, so this PR does not change any numerical output.
  • Merge recommendation: Safe to merge once [GUI] Match the pop_dipfit_loreta dialog on configured MRI data #1023 lands.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

EEGLAB parity notes

None.

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

I did not run ruff or the tests because those commands needed approval in this job. The vendored EEGLAB pop_multifit.m is not in this checkout, so I checked parity against the MATLAB-recorded case file.

@arnodelorme
arnodelorme changed the base branch from agent/issue-990-dipfit_loreta to develop December 1, 2026 04:31
@arnodelorme
arnodelorme merged commit 610e972 into develop Dec 1, 2026
5 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_multifit dialog to EEGLAB

1 participant