Skip to content

[GUI] Match the pop_epoch window to its native rows - #940

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-931-epoch
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-931-epoch

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The four-row Extract data epochs dialog now uses the time limits of the active dataset, with the native text spacing for epoched data. On jamming the maximum control-top error changed from 83.54 to 0.46 pixels. This PR stacks on #930.

pop_epoch.continuous-triptych

pop_epoch.epoched-triptych

distances

All output data samples from three event/window selections matched exactly. The returned indices also match after accounting for MATLAB’s 1-based and Python’s 0-based indexing. 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 130 passed, 3 skipped, 2 deselected in 0.69s. The native MATLAB R2025b run is separate from the Python test runner.

Fixes #931. Part of #875.

Full inventory report for the project team. pop_epoch (p. 64). 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 checked these parts:
    • pop_epoch_dialog_spec now uses layout="supergui", the same layout pop_autorej, pop_eegthresh and other dialogs use.
    • _default_epoch_limits now puts two spaces in the epoched default. That matches the native values recorded in tools/gui_geometry/cases/pop_epoch*.json: "-1 2" for epoched data and "-1 2" for continuous data.
    • The two new POP_CALLS geometry cases.
    • The updated expected value in tests/test_pop_epoch.py.
    • The new note in docs/source/api/epoching_and_selection.rst.
  • Highest-risk area: None identified.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

EEGLAB parity notes

None. The vendored pop_epoch.m is not in this checkout, so I compared against the native MATLAB recordings this PR adds under tools/gui_geometry/.

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-928-tf-cycle-calc to develop December 1, 2026 04:19
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_epoch dialog to EEGLAB

1 participant