Skip to content

[pop_firwsord] Match EEGLAB window deviation defaults and dialog layout - #895

Merged
arnodelorme merged 2 commits into
developfrom
agent/20261201-fix-892
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/20261201-fix-892

Conversation

@claude

@claude claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

The windowed-sinc order estimator preserves the supplied sampling rate, window and deviation and opens at MATLAB’s 196-pixel height. Both the public function and the filter’s Estimate button use the corrected dialog. Base is #894, on #888.

Default Hamming

Hamming to Kaiser

Kaiser at 250 Hz

Numerical distances

All six GUI states

Reproduction and verification

All six initialized Qt states matched live MATLAB controls. Hamming shows a disabled 0.0022. Switching from Hamming to Kaiser enables and retains 0.0022. Opening Kaiser with 250 Hz and 0.003 shows the supplied inputs. The largest row offset was 0.50 px. MATLAB measured 595 × 196, EEGPrep 596 × 196 (formerly 480 × 255). The additional opening case requests the missing deviation when Kaiser bandwidth is already known.

On jamming with EEGLAB 5e0be870 and EEGPrep 17760b46, all six order/deviation comparisons had zero numerical distance. The focused geometry and filter suites passed 119 tests, with nine optional MATLAB-wrapper tests skipped. Live MATLAB was run separately.

Fixes #892. Part of #875.

Full inventory report for the project team. pop_firwsord (p. 95). PDF · Editable Word.

Draw the dialog with the supergui layout instead of a fixed 480x232 size, and
fill the deviation edit with the chosen window's deviation (0.0022 for Hamming),
also when Estimate in pop_firws opens it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

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 Author

Claude finished @claude[bot]'s task in 1m 12s —— View job


Code review: PR #895

  • Pre-review gate: PR is open and not a draft, no earlier review, head is a2e152d

  • Read the diff and the repo instructions

  • Compared against firfilt pop_firwsord.m / firwsord.m

  • Checked the choice_text callback and the Estimate path in qt.py

  • Posted review

  • Overall assessment: Looks good. The deviation pre-fill matches pop_firwsord.m:

    • In firfilt, devs = {0.089 0.0063 0.0022 0.0002 []} sets the default value, and comwtype writes devs{wtype} into devedit when the dialog is created and again whenever the window type changes.
    • Kaiser shows an empty field because no dev was passed in.
    • The choice_text callback (qt.py:591) and the new initial_values["dev"] in _estimate_firws_order behave the same way.
  • Highest-risk area: None found. For non-Kaiser windows the dialog now sends its deviation back to firwsord, but firwsord swaps in its own table value for every window except Kaiser. The filter order cannot change.

  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_pop_firwsord_dialog_fills_window_deviation covers three cases: the Hamming default, switching to Hann, and switching to Kaiser (field empties and becomes editable).

EEGLAB parity notes

None. This PR changes only the GUI, with no numerical change, so it does not need a MATLAB reference run.

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

I did not run the test suite: running pytest was not permitted in this job. I also couldn't post the review as a separate gh pr comment because writing a temp file was not permitted, so the review is in this comment instead.

@arnodelorme
arnodelorme changed the base branch from develop to agent/issue-891-firpmord December 1, 2026 00:27
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_firwsord (Tools > Filter the data): match FIR window defaults and dialog geometry

1 participant