Skip to content

[GUI] Match the pop_dipfit_headmodel dialog on configured MRI data - #1028

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-998-dipfit_headmodel
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-998-dipfit_headmodel

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The selected-MRI form now fits the native six rows and makes the fiducial fields read-only. The largest vertical offset after the change was 0.49 px. This PR stacks on #1026.

pop_dipfit_headmodel.mri-triptych

distances

EEGPrep has no MRI segmentation backend. The two real windows opened with the same FieldTrip template NIfTI. A cross-language surface mesh cannot be measured.

Native captures and verification

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

Fixes #998. Part of #875.

Full inventory report for the project team. pop_dipfit_headmodel (p. 87). 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

PR #1028 was updated after the trigger (be5f45b -> f92fe35). Push again or mention Claude to run on the latest version.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 The public no-argument call now opens the anatomical T1 instructions and file chooser. Choosing the same FieldTrip T1 file opened both six-row settings dialogs on jamming. Closing the notice or chooser preserves the dataset and history. The MATLAB segmentation still requires FieldTrip.

notice

chooser

@arnodelorme arnodelorme left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review was written by an AI assistant during a nightly check, not by Arno.

Code review

  • Overall assessment: Safe to merge
  • Highest-risk area: Optional PySide6 import ordering in pop_dipfit_headmodel
  • Merge recommendation: Safe to merge

Blocking

None.

Important

None.

Nits

  • Severity: nit in pop_dipfit_headmodel: from PySide6 import QtWidgets runs on line 33 without an ImportError guard before questdlg2(...). In a base pip install eegprep environment without the gui extra, calling pop_dipfit_headmodel(EEG) now raises raw ModuleNotFoundError instead of the RuntimeError with the pip install eegprep[gui] remedy that questdlg2 and QtDialogRenderer raise. Move the QtWidgets import below if not answer: and wrap it in try ... except ImportError raising a RuntimeError that names pop_dipfit_headmodel and pip install eegprep[gui].

Test gaps

None.

EEGLAB parity notes

None.

Checked for correctness bugs, EEGLAB parity against plugins/dipfit/pop_dipfit_headmodel.m, data structure compatibility, changed behavior tests, Ruff lint, and AGENTS.md compliance. Ran tests/test_dipfit_workflows.py and tests/test_gui_geometry.py in a detached worktree at f92fe351f8e1a7c93205c70346d60728256f57e4 (157 passed, 52 skipped on macOS, where the 52 skips are the Linux reference pixel checks).

@arnodelorme
arnodelorme changed the base branch from agent/issue-995-dipplot to develop December 1, 2026 17:42
@arnodelorme
arnodelorme merged commit a9450eb into develop Dec 1, 2026
3 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_dipfit_headmodel dialog to EEGLAB

1 participant