You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_firwsord (Tools > Filter the data): match FIR window defaults and dialog geometry #892
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.
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.
Move pop_firwsord_dialog_spec to layout="supergui" (drops the fixed size=(480, 232)); with MATLAB's Linux text extents (26.7 px) inputgui_layout gives 196 px, as in MATLAB
Fill the deviation edit from the firwsord window table (0.089, 0.0063, 0.0022, 0.0002, empty for Kaiser) at open and on window change, via the existing choice_text callback; pass it as initial value when opened from pop_firws Estimate
Offscreen Qt regression test in tests/test_pop_firfilt.py
CI unit tests (lint, ty, docs, pre-commit pass; OS matrix running)
Research
pop_firwsord_dialog_spec still used the old "qt" layout with a hard-coded size, and the dev edit started empty; MATLAB fills it from a CreateFcn/Callback on the window popup.
Note: the vendored EEGLAB checkout and network were unavailable in this runner, so the MATLAB source could not be re-read and no tools/gui_geometry/reference/pop_firwsord.json was added; a capture on jamming should confirm the columns. In the GUI path, the history command now includes the shown deviation for non-Kaiser windows (firwsord ignores it).
Activity
claude commentedon Dec 1, 2026
🤖 Plan:
pop_firwsord_dialog_spectolayout="supergui"(drops the fixedsize=(480, 232)); with MATLAB's Linux text extents (26.7 px)inputgui_layoutgives 196 px, as in MATLABchoice_textcallback; pass it as initial value when opened from pop_firws Estimatetests/test_pop_firfilt.pyResearch
pop_firwsord_dialog_specstill used the old "qt" layout with a hard-coded size, and the dev edit started empty; MATLAB fills it from a CreateFcn/Callback on the window popup.Relevant code
src/eegprep/plugins/firfilt/pop_firwsord.py- dialog specsrc/eegprep/functions/guifunc/qt.py#L1590-L1625- Estimate from pop_firws opens itNote: the vendored EEGLAB checkout and network were unavailable in this runner, so the MATLAB source could not be re-read and no
tools/gui_geometry/reference/pop_firwsord.jsonwas added; a capture on jamming should confirm the columns. In the GUI path, the history command now includes the shown deviation for non-Kaiser windows (firwsord ignores it).