Skip to content

[GUI] Match the pop_rejcont dialog height and channel default to EEGLAB - #953

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

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

Conversation

@claude

@claude claude Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Lay out the pop_rejcont dialog with the supergui geometry instead of a fixed 332 px preset, which the row scale turned into a 365 px window, so its seven rows open at EEGLAB's 273 px. The channel range now defaults to [1:N] as in EEGLAB. Adds a Qt test of the height and default.

Fixes #934

🤖 Generated with Claude Code

Lay the dialog out with EEGLAB's supergui geometry instead of a fixed
332 px preset (365 px after row scaling), so its seven rows open at
273 px, and default the channel range to [1:N].

Fixes #934

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 40s —— View job


Code review

  • Overall assessment: Looks good. The PR changes only the dialog layout and the default text in the channel field; the rejection computation is unchanged.
  • Highest-risk area: The bracketed [1:N] default in elecrange. I checked that it still parses: parse_numeric_sequence (src/eegprep/functions/miscfunc/value_parsing.py:72) strips the [] before reading start:stop ranges. one_based_indices in _apply_one therefore returns the same channel list as before, and the history command is built from that list.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new Qt test checks the two behaviours this PR changes: the window opens at EEGLAB's 273 px height (±1 px) and the channel field shows [1:32]. It uses the same Linux-only skip as tests/test_gui_geometry.py:169, because the MATLAB reference measurements were taken on Linux.

EEGLAB parity notes

None. Issue #934 gives the bracketed full channel range and rows sized from their contents as the EEGLAB behaviour. layout="supergui" follows the existing pop_rejspec dialog. The window_size in tools/visual_parity/cases.json changes to 273 px to match. The PR does not change numerical output, so no MATLAB reference run is needed.

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.

[GUI] Match the pop_rejcont dialog to EEGLAB

1 participant