Repository navigation
[GUI] Page the loaded STUDY dataset editor in groups of ten - #1056
arnodelorme wants to merge 4 commits into
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 28s —— View job Code review
BlockingNone. Important
NitsNone. Test gaps
EEGLAB parity notes
Checked:
|
| spec = pop_study_dialog_spec(study, datasets, page=page) | ||
| controls = tuple( | ||
| replace(c, string=format_components_button(saved[c.tag])) | ||
| if c.tag in saved and c.tag.endswith("_components") and saved[c.tag] |
There was a problem hiding this comment.
Important: the components button label goes stale after "all components" or Clear.
saved[c.tag] is [] when the user picks all components or presses Clear. The and saved[c.tag] guard then skips the relabel. When the user returns to the page, the button still shows the spec label from the original datasetinfo (for example Comp.: 1 2 3), but its stored value, and the value submitted on Ok, is [] (all components). The same happens when a cross-page propagation (lines 133-135) writes [] to a row on another page. The user sees one selection and gets a different one.
Here is how it happens: a dataset has comps=[1,2,3]. On page 1, the user clicks Clear or selects all components, so the label reads "All comp.". They click > and then <, and the label reads "Comp.: 1 2 3" again.
Fix: use the spec's own label to decide whether to relabel. format_components_button([]) already returns "All comp.", and blank rows past the loaded datasets keep "":
| if c.tag in saved and c.tag.endswith("_components") and saved[c.tag] | |
| if c.tag in saved and c.tag.endswith("_components") and c.string |
To cover it, extend test_loaded_study_pages_keep_unsubmitted_rows_and_cancel. On page 1, click dataset_1_clear. After paging back, assert that widgets["dataset_1_components"].text() == "All comp.".
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: State preservation across pages, component button relabeling, and deferred row removal in
_edit_dataset_pagesand_dataset_row_commands. - Merge recommendation: Safe to merge.
Blocking
None.
Important
None.
Nits
None.
Test gaps
None.
EEGLAB parity notes
None.
Checked for correctness bugs, EEGLAB parity against functions/studyfunc/pop_study.m and functions/studyfunc/std_editset.m (paging ten rows at a time, header text and alignment, supergui geometry, component selection propagation across pages for shared recordings, Cancel discard behavior, and Clear emitting remove commands in reverse index order), data structure compatibility, tests for changed behavior, and CLAUDE.md/AGENTS.md compliance.
Tests run at 58d83f0310087fe4021f7db1d3050280ab721f6a in a detached worktree: tests/test_gui_pop_study.py (19 passed), tests/test_gui_geometry.py, tests/test_guifunc_primitives.py, tests/test_study_metadata.py, and tests/test_stream9_gui_importers.py (132 passed, 35 skipped on macOS, 1 deselected), plus ruff check and ruff format --check on the modified Python files (all passed).
|
🤖 Review before taking this out of draft. State. The updated parent (#1034, with develop) is merged in ( Two things changed during this update.
The earlier finding on the components button (old label after "all components" or Clear) is fixed in Verdict: ready for review. |
Create study from loaded datasets · Stack on PR #1034. Ten displayed rows per page, with edits preserved across pages until submission.
Both native windows on jamming are 618 px tall. Maximum vertical control displacement is 0.49 px. Before the change EEGPrep used a fixed-height window without page controls. Cancel now discards edits across pages. Clear removes the selected datasets on submission. The component column stays wide enough for three-digit component selections.
Two edited metadata configurations agreed exactly. For a newly created Study, MATLAB uses an empty list to mean all components and EEGPrep explicitly stores IDs 1–32. The three effective selections agree. Opening and navigating these pages does not require a dipole model. The existing residual-variance selection backend remains unavailable.
EEGLAB
5e0be870, EEGPrep90f60a36. The GUI, metadata and geometry suites passed all 135 tests on jamming. Part of #875. Fixes #1057. Addresses #708.Full inventory report for the project team. pop_study (p. 18). PDF · Editable Word.