Repository navigation
[GUI] Match the pop_dipfit_headmodel dialog on configured MRI data - #1028
Conversation
There was a problem hiding this comment.
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.
arnodelorme
left a comment
There was a problem hiding this comment.
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
PySide6import ordering inpop_dipfit_headmodel - Merge recommendation: Safe to merge
Blocking
None.
Important
None.
Nits
- Severity: nit in
pop_dipfit_headmodel:from PySide6 import QtWidgetsruns on line 33 without anImportErrorguard beforequestdlg2(...). In a basepip install eegprepenvironment without theguiextra, callingpop_dipfit_headmodel(EEG)now raises rawModuleNotFoundErrorinstead of theRuntimeErrorwith thepip install eegprep[gui]remedy thatquestdlg2andQtDialogRendererraise. Move theQtWidgetsimport belowif not answer:and wrap it intry ... except ImportErrorraising aRuntimeErrorthat namespop_dipfit_headmodelandpip 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).


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.
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.