Skip to content

[GUI] Align the Parks–McClellan order and weights dialog - #894

Merged
arnodelorme merged 1 commit into
developfrom
agent/issue-891-firpmord
Dec 1, 2026
Merged

arnodelorme merged 1 commit into
developfrom
agent/issue-891-firpmord

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The Parks–McClellan Estimate dialog now aligns both entries and matches MATLAB’s 147-pixel window height on Linux. Base is the FIR branch in #888.

MATLAB, previous EEGPrep, updated EEGPrep

Distance for eight order and weight comparisons

Geometry and numerical checks

At 6c0254c2 on jamming, all seven controls were present in order. The largest vertical offset was 0.53 pixel. The Qt window is 5 pixels wider than MATLAB and the edit column starts 2.34 pixels farther right. All eight numerical calls returned identical order and weights. The targeted run passed 106 tests with seven optional MATLAB tests skipped. The graph uses eight separately executed comparisons against MATLAB R2025b. The preflight verified EEGLAB 5e0be870 and both EEGPrep revisions.

Fixes #891. Part of #875.

Full inventory report for the project team. pop_firpmord (p. 94). 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 34s —— View job


Code review

  • Overall assessment: Looks good. This is a GUI-only change to pop_firpmord_dialog_spec. It swaps the fixed size=(560, 176) for layout="supergui", the same way the sibling firfilt dialogs (pop_firpm, pop_firma, pop_kaiserbeta, pop_eegfiltnew) already work. The numerical path (_band_lengths and _remlpord_length) is untouched.
  • Highest-risk area: The geometry tooling now accepts uilist entries that have no 'string' property (len(entry) > 2 guards in tests/test_gui_geometry.py:109 and tools/gui_geometry/draw_geometry.py:53). Those guards are correct and are needed for the bare {'style','edit'} entries in the recorded case.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. pop_firpmord now runs through the existing parametrized CASES. It is checked against the MATLAB-recorded case and reference JSON for spec geometry, title, controls and help, for control placement, and for drawn row alignment. I could not run pytest in this job because the command needs approval, so this relies on the PR's reported run (106 passed, 7 MATLAB tests skipped).

EEGLAB parity notes

None.

  • The spec geometry ((1,1),(1,1)) and the uniform vertical weights match the recorded EEGLAB call (geomvert: [] is the same as (1,1) under the test's normalization), and so do the title, the help button and the control order.
  • The MATLAB case pop_firpmord([0.76 0.84], [1 0]) in record_geometry.m uses the same arguments as the Python FILTER_CALLS lambda.
  • The vendored pop_firpmord.m is not in this checkout, so I checked parity against the recorded tools/gui_geometry/cases/pop_firpmord.json (EEGLAB 5e0be870).
  • No numerical change, so no MATLAB reference run is needed.

I checked correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behaviour, and AGENTS.md compliance. A docs note was added in interactive_pop_workflows.rst.

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.

pop_firpmord (Tools > Filter the data): match the FIR order and weights dialog

1 participant