Skip to content

[GUI] Match the Neuroscan EEG precision and subset fields - #965

Open
arnodelorme wants to merge 5 commits into
agent/issue-875-file-loadbvfrom
agent/issue-875-file-loadeeg
Open

arnodelorme wants to merge 5 commits into
agent/issue-875-file-loadbvfrom
agent/issue-875-file-loadeeg

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The five edit fields use the source geometry. Precision starts at Auto and accepts 16, 32 or 0. Numeric ranges, scripted import and replay retain their existing behavior. Stacked on #963 (agent/issue-875-file-loadbv).

Format or settings window, MATLAB and EEGPrep before and after

Native height differences and histogram of normalized numerical distances

Measurements and verification

Native client geometry on jamming was 785.6 × 221.0 px in MATLAB, 487 × 240 before and 798 × 221 after. Screenshots use each toolkit’s captured frame. The full TESTEEG.EEG recording had 32 channels, 700 samples and 1,200 sweeps. Normalized maximum absolute difference was 3.42e-8. Single-channel/single-sweep and two-channel/two-sweep selections matched exactly. The focused File menu run passed 246 tests (six deselected). Both source trees passed the capture safeguards.

Closes #966. Part of #875.

Full inventory report for the project team. pop_loadeeg (p. 27). PDF · Editable Word.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Review before taking this out of draft.

State. The updated parent (#963) is merged in (12babcb48). On the Mac 282 tests pass and jamming passes 307 geometry tests.

What I checked. The precision control becomes an edit box that shows Auto, as in the recorded EEGLAB form, and the labels and shares [1 0.6] match. _ranges accepts 16, 32, Auto and 0, and refuses anything else with a clear message. The test covers the four accepted values.

No finding. Verdict: ready for review.

@arnodelorme
arnodelorme marked this pull request as ready for review December 2, 2026 05:49

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

Copy link
Copy Markdown
Contributor

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


Code review

  • Overall assessment: Looks good. This changes only the dialog and how the precision field is parsed. Loaded data is unchanged.
  • Highest-risk area: _ranges precision parsing in src/eegprep/functions/popfunc/pop_loadeeg.py. It moved from a popup index (1/2/3) to edit text.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

EEGLAB parity notes

None. The dialog spec matches the recorded EEGLAB case in tools/gui_geometry/cases/pop_loadeeg.json (EEGLAB commit 5e0be87): title Load an EEG dataset, [1 0.6] × 5 geometry, the five label strings, and the precision edit box preset to Auto.

What I checked:

  • Precision parsing. 16 gives short and 32 gives int32, the same loadeeg formats as the old popup indices 2 and 3. Auto and 0 add no format, so loadeeg auto-detects. Any other value raises a pop_loadeeg: error that lists the accepted values. _ranges has a single caller, at pop_loadeeg.py:64, so no other code still passes the old integer value.
  • History and replay. _history still adds the format string only when one is set, so replayed commands are the same as before.
  • Tests. The parametrized _ranges test covers all four accepted values. test_public_loader_settings checks the dialog height against the reference and that the field shows Auto.
  • Docs. interactive_pop_workflows.rst now has a line on the Neuroscan precision and subset fields.
  • Parity run. The PR changes the GUI and input parsing but not the numerical path, so the MATLAB reference run in AGENTS.md doesn't apply.

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.

1 participant