Repository navigation
[GUI] Lay out the pop_jointprob dialog with supergui - #919
claude[bot] wants to merge 4 commits into
Conversation
Drop the fixed 600x320 size so supergui sizes the figure from EEGLAB's geometry, and pass ' ' to both checkboxes as pop_jointprob.m does. 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 56s —— View job Code review
BlockingNone. Important
Nits
Test gaps
EEGLAB parity notes
The PR doesn't change any numerical code, so it doesn't need the EEGLAB MATLAB reference run. Checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behavior, and CLAUDE.md/AGENTS.md compliance. |
| } | ||
| CASES = sorted(POP_DIALOGS) | ||
| # Cases whose pixel positions MATLAB has measured (matlab/draw_geometry.m). | ||
| MEASURED = [name for name in CASES if (GEOMETRY / "reference" / f"{name}.json").exists()] |
There was a problem hiding this comment.
Important (test gap / weakened assertion). MEASURED drops any case whose reference/<name>.json is missing, and it does this silently. It covers every case, not just pop_jointprob. Until this PR, all 14 cases had a reference, so a missing file failed loudly in _reference(name). Now a future case added without its MATLAB measurement, or a reference file deleted by accident, takes the pixel-position test and the drawn-dialog test out of the run without a trace. That runs against AGENTS.md: "preserve skip behavior instead of weakening assertions".
See
eegprep/tests/test_gui_geometry.py
Lines 59 to 62 in a655d56
Suggested fix: keep CASES in both parametrizations and mark only the known gap, so it shows up in the test report and fails strictly once the reference lands:
UNMEASURED = {"pop_jointprob"} # reference not yet recorded with record_geometry.m (#907)
MEASURED_CASES = [
pytest.param(name, marks=pytest.mark.xfail(strict=True, raises=FileNotFoundError, reason="MATLAB reference not recorded"))
if name in UNMEASURED else name
for name in CASES
]Another option is to record reference/pop_jointprob.json before merging, and then this filter isn't needed at all.
| size=(600, 320), | ||
| geometry=((1, 0.1, 0.75),) * 3 + ((1, 0.26, 0.9),) + (1,) + ((1, 0.22, 0.85),) * 2, | ||
| layout="supergui", | ||
| geometry=((1, 0.1, 0.75),) * 3 + ((1, 0.26, 0.9),) + ((1,),) +((1, 0.22, 0.85),) * 2, |
There was a problem hiding this comment.
Nit. There's a space missing after + (((1,),) +((1, 0.22, 0.85),)). CI's ruff format --check . will reject this line.
| geometry=((1, 0.1, 0.75),) * 3 + ((1, 0.26, 0.9),) + ((1,),) +((1, 0.22, 0.85),) * 2, | |
| geometry=((1, 0.1, 0.75),) * 3 + ((1, 0.26, 0.9),) + ((1,),) + ((1, 0.22, 0.85),) * 2, |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # docs/source/api/interactive_pop_workflows.rst # tests/test_gui_geometry.py # tools/gui_geometry/cases/pop_jointprob.json
|
🤖 Second round on the review above: after merging develop, nothing remains of this pull request (commit
This pull request can be closed as superseded. It is left open for Arno to decide. |
|
Closed at Arno's request (email of December 1, 2026): this branch has no change left against develop. — orchestrator |
The joint probability dialog had a fixed 600x320 size, which spread its rows and pushed the buttons down. It now uses the supergui layout with the geometry and controls of pop_jointprob.m. The geometry test gains a pop_jointprob case; its MATLAB pixel reference still has to be recorded on jamming.
Fixes #907