Skip to content

[GUI] Match the STUDY BIDS export window and task prompt - #997

Open
arnodelorme wants to merge 3 commits into
agent/issue-875-file-importbidsfrom
agent/issue-875-file-exportbids
Open

arnodelorme wants to merge 3 commits into
agent/issue-875-file-importbidsfrom
agent/issue-875-file-exportbids

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The public STUDY export places filename, license, multiline CHANGES and metadata controls in their EEGLAB rows. It uses the saved STUDY task and asks for a missing task in a second window. Direct dataset export keeps its task field. Stacked on #991 (agent/issue-875-file-importbids).

Format or settings window, MATLAB and EEGPrep before and after

Native height differences and histogram of normalized numerical distances

Measurements and verification

Native client geometry on jamming was 780.7 × 331.2 px in MATLAB, 709 × 410 before and 789 × 331 after. Screenshots use each toolkit’s captured frame. Two saved epoched datasets formed the same two-subject STUDY in MATLAB and EEGPrep. Three exports covered named IDs, anonymized IDs and a different task. The six saved EEG recordings matched sample by sample, including sampling rates, number of events and channel labels. The MATLAB capture uses File > BIDS tools > Export STUDY to BIDS folder. The EEGPrep capture uses its documented public STUDY export function. The focused File menu run passed 111 tests (five deselected). Both source trees passed the capture safeguards.

Closes #999. Part of #875.

Full inventory report for the project team. pop_exportbids (p. 93). PDF · Editable Word.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Review before taking this out of draft.

State. The updated parent (#991) is merged in (78d870d20). On the Mac 232 tests pass and jamming passes 307 geometry tests.

What I checked against pop_exportbids.m lines 48 to 98. The rows, the column shares ([0.3 0.56 0.14], [0.3 0.7]), the row heights ([1 0.2 1 1 1 3 1 1]) and the three line CHANGES box ('max' 3) match. For a STUDY without a task name the second form "Missing required information" opens after the options, as in EEGLAB, with the same label and the shares [1 0.4]. The export of loaded datasets without a STUDY keeps its task row, which EEGLAB does not have and which is documented.

No finding. 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 53s —— View job


Code review

  • Overall assessment: Looks good. One nit about the help file.
  • Highest-risk area: GUI STUDY export when STUDY.task is empty.
  • Merge recommendation: Safe to merge.

What I checked

  • In _export_dialog, a saved STUDY.task is used. The "Missing required information" window opens only when STUDY.task is empty. Cancelling that window returns ("", "") and writes nothing. A direct dataset export (no STUDY) keeps its task row.
  • pop_exportbids_dialog_spec: the geometry and geomvert row counts match the controls in both modes. Without a task there are 9 controls in 8 rows; with a task there are 11 controls in 9 rows.
  • The textarea CHANGES box is read back as text by QtDialogRenderer._read_widget.
  • When no renderer is passed, the second window falls back to QtDialogRenderer through inputgui.
  • Every caller of pop_exportbids_dialog_spec still passes the default task="eeg" and keeps the task row.

Blocking

None.

Important

None.

Nits

  • src/eegprep/resources/help/pop_exportbids.md:41: the new paragraph comes after See also: POP_IMPORTBIDS, BIDS_PREPROC, so the Help window shows it below the footer. Move it above line 39, for example next to the task-name rules at lines 30-31. I left an inline comment on that line.

Test gaps

None required. The new test covers the missing-task window and its cancel path. A test with a non-empty STUDY.task that checks the history command records that task would add coverage, but it isn't needed for this PR.

EEGLAB parity notes

None found. This checkout has no copy of pop_exportbids.m, so I checked the row shares, row heights and second window against the line references in the PR and in your earlier comment, not the MATLAB source.

Not done

  • I didn't run any tests. The pytest command needed permission that this job doesn't have.
  • I couldn't post the review with gh pr comment because writing to /tmp needed approval. The review is in this comment instead.


See also: POP_IMPORTBIDS, BIDS_PREPROC

For a STUDY export, the saved task name is used. If the STUDY has no task name, enter it in the next dialog. The CHANGES box accepts multiple lines.

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.

Nit: This paragraph comes after See also: POP_IMPORTBIDS, BIDS_PREPROC (line 39), so the Help window shows it below the footer. Move it above the See also line, for example after the task-name rules at lines 30-31.

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