Repository navigation
FIX: Make minimum-phase firwin2 high-pass filters work with even filter lengths - #14627
Merged
Merged
Conversation
sohailshk
requested review from
agramfort,
drammock and
larsoner
as code owners
December 2, 2026 06:34
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
sohailshk
force-pushed
the
fix/minphase-firwin2-highpass
branch
from
December 2, 2026 06:35
d3353a2 to
b2678af
Compare
larsoner
approved these changes
Dec 2, 2026
larsoner
left a comment
Member
There was a problem hiding this comment.
Makes sense, thanks @sohailshk !
larsoner
enabled auto-merge (squash)
December 2, 2026 15:47
larsoner
disabled auto-merge
December 2, 2026 15:47
larsoner
enabled auto-merge (squash)
December 2, 2026 15:48
larsoner
disabled auto-merge
December 2, 2026 16:21
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
larsoner
added a commit
to larsoner/mne-python
that referenced
this pull request
Dec 2, 2026
* upstream/main: FIX: Limit NaN propagation during overlap-add FIR filtering (mne-tools#14614) ENH: Add save() to ConductorModel and InverseOperator (mne-tools#14612) FIX: Make minimum-phase firwin2 high-pass filters work with even filter lengths (mne-tools#14627) DOC: Note that cap montages do not line up with fsaverage in template-MRI tutorial (mne-tools#14628) DOC: Say adjacency=None is rarely right for sensor or source data in cluster tests (mne-tools#14629)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference issue (if any)
None found (searched for firwin2, minimum phase, and Type II filter).
What does this implement/fix?
Fixes ValueError: A Type II filter must have zero gain at the Nyquist frequency from scipy.signal.firwin2 when creating or applying minimum-phase (phase="minimum") firwin2 high-pass or band-stop filters with an even filter length.
Reproduction examples:
Cause & regression history:
Additional information