Skip to content

[GUI] Match the pop_rejchan window to its native rows - #941

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-932-rejchan
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-932-rejchan

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The five-row channel rejection dialog now sizes itself from its controls. The initial spectrum range uses native spacing and stays disabled until Spectrum is selected. On jamming the maximum control-top error changed from 97.95 to 0.62 pixels. This PR stacks on #940.

pop_rejchan.continuous-triptych

pop_rejchan.epoched-triptych

distances

All three measures selected the same rejected channel indices. The normalized score differences for probability and standard deviation exceed the 1e-5 reference level, including before this GUI change. Maximum normalized distance across the three comparisons was 1.65e-05.

Verification and methods

The two public functions opened on the same sample inputs with clean EEGLAB and EEGPrep checkouts. For each numerical case the distance is the largest absolute error divided by the largest absolute MATLAB output. Tests on jamming reported 170 passed, 8 deselected in 15.82s. The native MATLAB R2025b run is separate from the Python test runner.

Fixes #932. Part of #875.

Full inventory report for the project team. pop_rejchan (p. 56). PDF · Editable Word.

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

Copy link
Copy Markdown
Contributor

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


Code review

  • Overall assessment: Looks good. I found no defects. The PR switches the pop_rejchan dialog from a fixed size=(520, 282) to layout="supergui", so the dialog now sizes itself from its controls the way EEGLAB does. It also gives the frequency range edit box the same default spacing as EEGLAB ("1 64") and adds MATLAB recordings for epoched and continuous data.
  • Highest-risk area: The freqrange default string. I checked that a double space still parses correctly: parse_numeric_sequence splits on whitespace, and _run_gui only forwards freqrange when Spectrum is selected.
  • Merge recommendation: Safe to merge, after the base PR [GUI] Match the pop_epoch window to its native rows #940 lands.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. Both new cases go through all three tests in tests/test_gui_geometry.py: layout against MATLAB extents, the spec against the recorded inputgui call (title, geometry, labels, popup default 2/Kurtosis, checkbox state, disabled spec controls), and the drawn Qt rows. Note that the two cases/*.json recordings are identical apart from name, while the MATLAB references differ only by sub-pixel text extents. The continuous case is therefore mostly redundant, but it is cheap to keep.

EEGLAB parity notes

None. The geometry ((2,1.3),(2,1.3),(2,0.4,0.9),(2,1.3),(2,1.3)), the control order, the normlab/spec tags, the disabled spectrum row, and the popup default all match the uilist recorded from EEGLAB 5e0be87. The PR does not touch any numerical code. The probability and SD differences above 1e-5 that the description reports existed before this change and are unrelated to it.

I checked correctness, EEGLAB parity, the pop_rejchan dialog spec and GUI result handling, the changed tests, and AGENTS.md compliance. I did not re-run pytest here because the command was not permitted in this environment; the PR reports 170 passed.

@arnodelorme
arnodelorme changed the base branch from agent/issue-931-epoch to develop December 1, 2026 04:25
…jchan

# Conflicts:
#	tests/test_gui_geometry.py
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