Skip to content

[GUI] Lay out the pop_rejchan dialog with EEGLAB's supergui - #943

Open
claude[bot] wants to merge 2 commits into
developfrom
agent/20261201-fix-932
Open

claude[bot] wants to merge 2 commits into
developfrom
agent/20261201-fix-932

Conversation

@claude

@claude claude Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Reject channel now uses layout="supergui" like the other ported dialogs, so its height follows EEGLAB's rows instead of a fixed 282 px window. The disabled spectrum range shows num2str([1 EEG.srate/2]), for example "1 64" with two spaces, as EEGLAB does.

Fixes #932

🤖 Generated with Claude Code

Draw Reject channel with layout="supergui" instead of a fixed 520x282
window, and format the disabled spectrum range as num2str([1 srate/2]).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

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 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @claude[bot]'s task in 55s —— View job


Code review

  • Overall assessment: Looks good. The dialog now uses layout="supergui", as pop_reref, pop_rejspec, pop_eegthresh and the others already do. _num2str_row copies MATLAB's num2str for a row vector of positive numbers.
  • Highest-risk area: the default text in the disabled freqrange box (pop_rejchan.py:98).
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new assertions spec.layout == "supergui" and freqrange == "1 64" cover the changed behavior with the 128 Hz sample set.

EEGLAB parity notes

  • I checked _num2str_row by hand against MATLAB's num2str:
    • Whole-number case: [1 64] is printed with %4d, which gives "1 64" after trimming. This matches MATLAB's two-space padding.
    • Fractional case, for example srate 125: [1 62.5] is printed with %13.6g, which gives "1 62.5". This matches MATLAB's max(floor(log10(max))+5, 5) precision and the +7 field width.
  • The extra space doesn't change parsing. parse_numeric_sequence splits on whitespace, so the values that reach the spectrum mask are the same.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. I couldn't run the test file in this job because the runner blocked the pytest command.

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.

[GUI] Match the pop_rejchan dialog to EEGLAB

1 participant