You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_study window: "Select by RV" button alignment, page buttons missing (after the release) #708
Arno commented the File menu report of #696 (EEGPrep versus EEGLAB, side-by-side captures) on November 26, 2026; this issue is one of his comments, with one pull request to address it.
Window: 3.66 Create study > Using all loaded datasets (finding F23)
What to do: Parked (label later): to do after the release without STUDY. Align the "Select by RV" button and add the page navigation and the buttons of EEGLAB's window.
Done when: a pull request on a branch agent/issue-<n> of develop, with captures before and after the change next to EEGLAB's, in a Word file and the same content as a PDF (rule 14), linked from the pull request. Arno merges.
Vertical alignment of the "Select by RV" button is wrong. Also, the page skips are missing and the buttons are missing. This is for study so far, an issue, but doesn't have to be addressed now. Right now we want to release EEGNav without the study.
The windows are opened on jamming (MATLAB R2025b and EEGPrep under Xvfb, /mnt/v1/arno/menutest_probe shows how), never on Arno's Mac in the daytime. Capture EEGLAB's window, EEGPrep's before and EEGPrep's after; put the three side by side. Run the tests of the functions touched (pytest) before opening the pull request.
Research the code and compare it with EEGLAB's pop_study.m
Implement: on hold. The issue has the later label, and the change is a GUI feature, not a small fix. It needs a new paging callback in the Qt renderer, probably more than 100 lines. The "Done when" criteria also need EEGLAB captures from jamming (MATLAB R2025b under Xvfb), which this runner cannot make.
Research
EEGPrep's pop_study_dialog_spec lists every dataset in one scrollable table with max(10, n) rows. It does not have EEGLAB's paging row (<, Page N, >). The code records this as a known_differences entry. The "Select by r.v." button sits in the header row with geometry geomUnit2, as in EEGLAB. Its misalignment most likely comes from the QSS min/max-height of 27px against the 15px header labels, plus the fixed width of 76px. The vertical alignment inside the header row is not set.
Footer: after the "Important note" line, add the EEGLAB row {} '<' 'Page 1' '>' {} with geometry (1, 0.2, 0.3, 0.2, 1). Then add a blank (1,) row before the checkbox row, to match EEGLAB's guigeom.
Paging: always render 10 widget rows, as EEGLAB does. Keep every row's values in a Python-side model, and add a study_page CallbackSpec in qt.py. On < or >, it would save the 10 visible rows into the model, change the page (minimum 1), reload the rows, and update the Page N label. Then _dataset_row_commands and _study_row_count would read from the model instead of the per-row tags. select_study_components also needs the model, because it propagates the selection to every row with the same subject, session and run. Remove scrollable and the "scrollable table" known difference.
"Select by r.v.": set the header row's vertical alignment to centre, and drop the 76px width clamp so geomUnit2's 0.3 weight sizes the button. Then check the result against the EEGLAB capture.
Tests: extend the pop_study coverage in tests/test_study_metadata.py with a test for 12 datasets. Page to 2, edit row 11, page back, accept; the edit must come through in datasetinfo. Refresh the pop_study_dialog visual-parity case (tools/visual_parity/cases.json#L545) on jamming for the before, after and EEGLAB captures.
Open question: does "the buttons are missing" mean only the < / > page buttons, or something else in EEGLAB's capture (for example the OK, Cancel and Help row)?
🤖 Arno included the full inventory in #875. I am implementing ten-row page navigation and checking the Create study > Using all loaded datasets window on jamming, including edits made on different pages. The change stacks on #1034.
🤖 PR #1056 adds page navigation and dataset removal. Both native pages measured 618 px high, with a maximum vertical control displacement of 0.49 px. Three effective selections matched, and both edited Study metadata sets matched. The PR stacks on #1034.
🤖 The full comparison for this inventory run is in #1057, including the original window, both new pages, and the histograms of the program outputs. PR #1056 implements the change.
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
pop_study.mlaterlabel, and the change is a GUI feature, not a small fix. It needs a new paging callback in the Qt renderer, probably more than 100 lines. The "Done when" criteria also need EEGLAB captures from jamming (MATLAB R2025b under Xvfb), which this runner cannot make.Research
EEGPrep's
pop_study_dialog_speclists every dataset in one scrollable table withmax(10, n)rows. It does not have EEGLAB's paging row (<,Page N,>). The code records this as aknown_differencesentry. The "Select by r.v." button sits in the header row with geometrygeomUnit2, as in EEGLAB. Its misalignment most likely comes from the QSS min/max-height of 27px against the 15px header labels, plus the fixed width of 76px. The vertical alignment inside the header row is not set.Relevant code
src/eegprep/functions/studyfunc/pop_study.py#L139-L144- "Select by r.v." header buttonsrc/eegprep/functions/studyfunc/pop_study.py#L107-visible_rows = max(10, n), no pagingsrc/eegprep/functions/studyfunc/pop_study.py#L251-L266- footer, missing[1 0.2 0.3 0.2 1]page rowsrc/eegprep/functions/guifunc/qt.py#L560-L567- callback dispatch where a paging callback would gofunctions/studyfunc/pop_study.mL237 (button), L266-273 (footer</Page 1/>, geometry[1] [1 0.2 0.3 0.2 1] [1] [0.14 3]), L541-630 (nextpage/prevpage,realindex = guiindex+(page-1)*10)Proposed Fix
{} '<' 'Page 1' '>' {}with geometry(1, 0.2, 0.3, 0.2, 1). Then add a blank(1,)row before the checkbox row, to match EEGLAB'sguigeom.study_pageCallbackSpec inqt.py. On<or>, it would save the 10 visible rows into the model, change the page (minimum 1), reload the rows, and update thePage Nlabel. Then_dataset_row_commandsand_study_row_countwould read from the model instead of the per-row tags.select_study_componentsalso needs the model, because it propagates the selection to every row with the same subject, session and run. Removescrollableand the "scrollable table" known difference.geomUnit2's 0.3 weight sizes the button. Then check the result against the EEGLAB capture.pop_studycoverage intests/test_study_metadata.pywith a test for 12 datasets. Page to 2, edit row 11, page back, accept; the edit must come through indatasetinfo. Refresh thepop_study_dialogvisual-parity case (tools/visual_parity/cases.json#L545) on jamming for the before, after and EEGLAB captures.Open question: does "the buttons are missing" mean only the
</>page buttons, or something else in EEGLAB's capture (for example the OK, Cancel and Help row)?arnodelorme commentedon Dec 1, 2026
🤖 Arno included the full inventory in #875. I am implementing ten-row page navigation and checking the Create study > Using all loaded datasets window on jamming, including edits made on different pages. The change stacks on #1034.
arnodelorme commentedon Dec 1, 2026
🤖 PR #1056 adds page navigation and dataset removal. Both native pages measured 618 px high, with a maximum vertical control displacement of 0.49 px. Three effective selections matched, and both edited Study metadata sets matched. The PR stacks on #1034.
arnodelorme commentedon Dec 1, 2026
🤖 The full comparison for this inventory run is in #1057, including the original window, both new pages, and the histograms of the program outputs. PR #1056 implements the change.