Skip to content

[GUI] Align the simple ERP STUDY counts and dataset grid - #1032

Open
arnodelorme wants to merge 2 commits into
agent/issue-875-file-mffimportfrom
agent/issue-875-file-studyerp
Open

arnodelorme wants to merge 2 commits into
agent/issue-875-file-mffimportfrom
agent/issue-875-file-studyerp

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The two setup dialogs now use content-driven sizing. Each condition has a column with its name and dataset selectors. Each subject has one row across conditions. Stacked on #1029 (agent/issue-875-file-mffimport).

Counts window

EEGLAB, EEGPrep before, EEGPrep after

Native geometry and same-input distances

Measurements and verification

Native client dimensions on jamming were 878.5 × 405.2 px in MATLAB, 852 × 308 before and 884 × 405 after. The counts window is 718 × 221 px in both applications. For 1 × 1, 2 × 1 and 2 × 2 designs, the returned STUDY dataset count and every condition, subject and recording filename agree. MATLAB was measured on entry to ERP precomputation. EEGPrep currently returns after setting up the STUDY. Its GUI does not automatically start the later MATLAB precompute and plotting stages. The Qt capture used the guarded checkout on PYTHONPATH.

Closes #1033. Part of #875.

Full inventory report for the project team. pop_studyerp (p. 17). PDF · Editable Word.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Review before taking this out of draft.

State. The updated parent (#1029) is merged in (a1ebeab77). On the Mac 283 tests pass and jamming passes 307 geometry tests.

What I checked. Both forms of pop_studyerp move to the supergui layout. The grid now puts the condition names on one row and one column of datasets per condition, with the "Condition N datasets" headers. The tests check that the two condition boxes are on the same line and that the two instruction lines are complete.

Small remark, not blocking. No recorded EEGLAB case backs this form yet, so the match with EEGLAB rests on reading pop_studyerp.m.

Verdict: ready for review.

@arnodelorme
arnodelorme marked this pull request as ready for review December 2, 2026 05:50

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

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

claude Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 47s —— View job


Code review

  • Overall assessment: Looks good. I compared the counts dialog and the dataset grid in pop_studyerp.py control by control with EEGLAB's functions/studyfunc/pop_studyerp.m (second GUI, the guispec/guigeom construction). They match.
  • Highest-risk area: Each geometry row must have exactly as many cells as controls in the supergui grid. I checked it for 1 condition and for N conditions, and the counts match.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The updated tests check that cond1 and cond2 sit on the same row, that the "Condition N datasets" headers appear, and that the two instruction lines stay complete. Those checks cover the layout regression this PR fixes.

EEGLAB parity notes

  • Header rows: EEGLAB uses [1] [1] [0.2 1 3.5] [1]: the title, a blank row, a spacer with the name label and edit box, then a blank row. The Python spec has the same rows with the controls in the same order.
  • Condition rows: In both versions, the column widths are [1 0.2] for the first condition and [0.1 1 0.2] for each later one. A spacer separates each condition from the previous one. The name labels, the cond{i} edit boxes, the blank [1] row and the "Condition i datasets" headers all match.
  • Subject rows: Each row has one set{c}_{s} edit box and one ... browse button per condition, with the same column widths. The tags match the ones _studyerp_from_dialogs reads, so the condition, subject and file-index mapping (nConds*index+icond-1) does not change.
  • Footer: Both end with a blank row and then the one-line hint, so the extra trailing (1,) row is correct.
  • I found no behavior change outside the layout. The returned values, the cancel paths and the history command are untouched.

I did not run the tests: the sandbox did not approve the pytest command. My check of geometry against controls was done by reading the code. The author reports 283 + 307 passing tests.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant