Skip to content

[GUI] Match the legacy FIR filter dialog to the recorded EEGLAB rows - #896

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-875-legacy-filter
Dec 1, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-875-legacy-filter

Conversation

@arnodelorme

@arnodelorme arnodelorme commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The legacy FIR filter uses MATLAB’s nine rows and now opens 326 pixels tall for both continuous and epoched data. The previous Qt window was 484 pixels tall. Base is #895, on #894 and #888.

Continuous sample

Epoched sample

Four signal comparisons

Geometry and numerical checks on jamming

EEGLAB 5e0be870, EEGPrep 85a72888. MATLAB measured 657 × 326 and Qt 658 × 326. Both samples have subpixel row alignment (largest offset 0.50 px). Continuous lowpass, causal highpass, FIRLS bandpass and epoched lowpass passed the samplewise tolerance; maximum normalized difference was 5.53 × 10⁻⁷. MATLAB exports the epoched result flattened; the comparison matched channel, time and epoch indices. All 125 targeted tests passed with nine optional MATLAB-wrapper tests skipped. The four MATLAB signal comparisons ran separately.

Part of #875.

Fixes #897.

Full inventory report for the project team. pop_eegfilt (p. 65). 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 38s —— View job


Code review

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. Both cases are added to FILTER_CALLS in tests/test_gui_geometry.py, so both existing geometry tests now run on pop_eegfilt, epoched and continuous:

  • the spec-versus-recorded check: title, geometry, geomvert, help and uilist;
  • test_drawn_dialog_has_matlab_rows_and_aligned_edit_boxes.

The new cases/ and reference/ JSON files differ only in name. That matches the EEGLAB pop_eegfilt.m dialog, which is the same for continuous and epoched data.

EEGLAB parity notes

None.

  • The geometry ((3,1)×3, (1,)×6) and the control order and labels match the recorded MATLAB uilist.
  • record_geometry.m adds the two cases using the same entry format as the other filter cases.
  • The new docs paragraph in preprocessing_pipeline.rst accurately describes the column layout and the blank-means-automatic filter order.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. I could not run the GUI geometry tests in this job because running pytest was not permitted. I also could not open pop_eegfilt.m directly because the vendored EEGLAB checkout is not in this runner. For parity I relied on the recorded MATLAB case and reference JSON and on the MATLAB measurement in the PR description (657 × 326 in MATLAB, 658 × 326 in Qt).

# Conflicts:
#	tests/test_gui_geometry.py
@arnodelorme
arnodelorme merged commit 0e52f55 into develop Dec 1, 2026
5 checks passed
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_eegfilt (Tools > Filter the data): verify the legacy FIR dialog and filtered signals

1 participant