Repository navigation
[GUI] Let edit boxes half a pixel apart in MATLAB land on neighbouring pixels - #1059
Conversation
# Conflicts: # docs/source/user_guide/study_workflows.rst # tests/test_study_measures.py
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.
|
Claude finished @arnodelorme's task in 27s —— View job 🤖 Review of #1059
Verdict: looks good. I found no blocking or important issues. What I checked
Nits (optional)
The real check is still the Ubuntu CI job for |
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: Edit box alignment threshold in
tests/test_gui_geometry.py. - Merge recommendation: Safe to merge once Linux CI passes.
Blocking
None.
Important
None.
Nits
None.
Test gaps
None.
EEGLAB parity notes
None.
Checked all 82 reference dialog geometries in tools/gui_geometry/reference/, _FigureLayout.setGeometry rounding in src/eegprep/functions/guifunc/qt.py, EEGLAB parity with pop_newtimef.m ([0.975, 1.27] vs [1, 0.3, ...]), and AGENTS.md compliance. Truly aligned MATLAB edit boxes (apart < 1e-6 across all recorded cases) still require exact pixel equality (<= 0), while the 0.49 pixel offset in pop_newtimef and pop_newtimef.continuous stays below 1 pixel after dialog width scaling and can differ by at most 1 pixel after integer rounding.
Tests run locally on macOS at commit 0af8cc5cee86e678c69648bb52004b3cc8627bc9: PYTHONPATH=<worktree>/src:<worktree> .venv/bin/python -m pytest <worktree>/tests/test_gui_geometry.py gave 174 passed, 82 skipped in 12.43s (the pixel placement test runs only on Linux).
[GUI] Match the pop_dipfit_headmodel dialog on configured MRI data
[GUI] Match the pop_leadfield dialog on configured MRI data
[GUI] Match the pop_dipfit_settings dialog on configured MRI data
[GUI] Match the pop_dipfit_nonlinear dialog on configured MRI data
Keep develop's PUBLIC_CALLS table and add the two pop_runica cases, keep both documentation paragraphs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[GUI] ICA decomposition dialog
[GUI] Run the ERP image MATLAB pixel gap check on Linux only
pop_precomp: Restore separate channel and component precomputation dialogs
pop_clustedit: Restore cluster editing actions and content-sized rows
Keep the reviewed one-pixel tolerance and develop's pop_runica test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tests/test_gui_geometry.py::test_drawn_dialog_has_matlab_rows_and_aligned_edit_boxesfails on GitHub's Ubuntu runner forpop_newtimefandpop_newtimef.continuoussince #994 added these two cases (assert 504 == 505). It passes on jamming, where the MATLAB references were measured.Cause. The test takes two edit boxes as "at the same position" when MATLAB places them less than half a pixel apart, and then asks EEGPrep for exactly the same pixel. In the
pop_newtimefreference the edit boxes start at 493.415 and 493.905 pixels: they are 0.49 pixel apart, not equal. With the window width the runner's fonts give, the two starts round to 504 and 505.Change. Edit boxes that are exactly aligned in MATLAB must still start on the same pixel. Edit boxes that MATLAB places a fraction of a pixel apart may start on neighbouring pixels. No source code changes.
Tests.
tests/test_gui_geometry.py: 256 passed on jamming (Linux), 174 passed and 82 skipped on macOS (the pixel checks only run on Linux). The failing case itself only shows on the GitHub runner, so its Ubuntu job is the real check.Part of #875
🤖 Generated with Claude Code