Repository navigation
[GUI] Match the dataset ERP comparison and plot options - #1017
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.
|
Claude finished @arnodelorme's task in 1m 5s —— View job Code review
BlockingNone. Important
Nits
Test gaps
EEGLAB parity notes
I checked correctness, EEGLAB parity, data structure compatibility, tests for the changed behavior, and AGENTS.md compliance. I also left an inline comment on |
| @@ -0,0 +1,3 @@ | |||
| # Plottopo options | |||
|
|
|||
| Plottopo draws one trace panel per selected channel. Set `ydir` to 1 to draw positive values upward or -1 to draw them downward. Use `ylimits` to set a common vertical scale across traces. | |||
There was a problem hiding this comment.
Important: this Help text describes options the "Plottopo options" field doesn't apply.
_plot_comperpreads onlyydirfromtplotopt:. The y-limits come from the separateeegprep/src/eegprep/functions/popfunc/pop_comperp.py
Lines 325 to 334 in 8689167
ylimoption, so typing'ylimits', [-5 5]here changes nothing.- On the GUI path the field is dropped entirely, because
_run_guinever copiestplotoptintooptions:. Eveneegprep/src/eegprep/functions/popfunc/pop_comperp.py
Lines 181 to 200 in 8689167
'ydir', 1has no effect.
Suggested fix: pass "tplotopt": result.get("tplotopt", "") through _run_gui. Then either honor a ylimits key from the parsed options or remove the ylimits sentence here.
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: GUI option forwarding for
tplotoptandplottopohelp wiring inpop_comperp. - Merge recommendation: Safe to merge.
Blocking
None.
Important
None.
Nits
None.
Test gaps
None.
EEGLAB parity notes
None. The supergui row weights, merged header text, []=all prompt, pophelp('plottopo') button callback, and tplotopt forwarding match functions/popfunc/pop_comperp.m and the recorded R2025b geometry case.
Checked correctness, EEGLAB parity (pop_comperp.m and plottopo.m), data structure compatibility, tplotopt console history replay, options_help dialog callback, documentation updates, and AGENTS.md compliance.
Tests run on detached worktree at 363d642e5e883b7d483159dea824e89520e29cd1:
pytest tests/test_gui_geometry.py tests/test_phase4_plot_wrappers.py tests/test_guifunc_pophelp_chansel.py: 216 passed, 85 skipped (Linux reference pixel checks and MATLAB engine tests), 5 deselected.pytest tests/test_stream11_help_errors.py tests/test_popfunc_visual_eeglab_tests.py -k "comperp or help": 27 passed, 24 deselected.ruff checkandruff format --checkon changed Python files: passed.
Match the dataset ERP comparison and plot options. The epoched window measured 352 px high in MATLAB, 524 px before the fix and 352 px afterward. Stack base is #1014.
Across 1 native openings, the largest vertical control offset was 0.68 px (target 1 px). Numerical comparison of average erp: 2/2 measured cases within tolerance.
EEGLAB
5e0be870, EEGPrep after8689167e, clean Linux checkouts. Part of #875.Fixes #1018.
Full inventory report for the project team. pop_comperp (p. 47). PDF · Editable Word.