Skip to content

[GUI] Match the pop_rejcont window to its native rows - #942

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-934-rejcont
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-934-rejcont

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The continuous rejection dialog displays the full channel range in brackets and sizes its seven rows from their contents. On jamming the maximum control-top error changed from 103.17 to 0.47 pixels. This PR stacks on #941.

pop_rejcont.continuous-triptych

distances

The selected sample intervals matched exactly at 6, 10 and 14 dB. The cases returned 19, 8 and 0 intervals, respectively. Maximum normalized distance across the three comparisons was 0.

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 173 passed, 8 deselected in 15.32s. The native MATLAB R2025b run is separate from the Python test runner.

Fixes #934. Part of #875.

Full inventory report for the project team. pop_rejcont (p. 57). 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 40s —— View job


Code review

  • Overall assessment: Looks good, no problems found. I checked that the new [1:32] default still parses, the supergui layout change, the recorded MATLAB geometry reference, the test registration and the docs.
  • Highest-risk area: the new default channel-range text [1:{nbchan}] (src/eegprep/functions/popfunc/pop_rejcont.py:69).
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. tests/test_gui_geometry.py now runs pop_rejcont.continuous against the recorded MATLAB reference, and that reference holds the [1:32] default text. This covers both changed lines.

EEGLAB parity notes

  • Channel-range text: The recorded EEGLAB reference (tools/gui_geometry/reference/pop_rejcont.continuous.json:34) shows "[1:32]", so the new bracketed default matches.
  • Parsing: parse_numeric_sequence (src/eegprep/functions/miscfunc/value_parsing.py:72) strips the outer brackets before reading start:stop ranges. one_based_indices therefore still selects channels 1 to N, and the rejection numbers are unchanged.
  • Layout: Replacing the fixed size=(560, 332) with layout="supergui" sizes the window from its contents, like EEGLAB's supergui. This matches the reported fall in maximum control-top error from 103.17 to 0.47 pixels.
  • Other cases: The record_geometry.m case uses EEGcont (continuous data). pop_rejcont rejects epoched data, so this is the right input.
  • Scope: The PR changes only GUI layout and the default text, so no rejection numbers change.

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

@arnodelorme
arnodelorme changed the base branch from agent/issue-932-rejchan to develop December 1, 2026 04:25
…jcont

# 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_rejcont dialog to EEGLAB

1 participant