-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Updated the buttord function to be consistent with the other filter #3235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The *ord functions design a filter to match a specification, so we should check whether the resulting frequency response actually meets the specification. Also change the tests for functions that don't match matlab, considering their current behavior to be correct. If scipy#3235 changes their behavior, the tests will be changed to match.
@cimarronm this seems to have a merge conflict (already did before merging gh-3085), could you rebase your branch? And can you also update the test for this function that was added by @endolith in gh-3085? |
Added the 0.14.0 milestone - I'd like to get this in for the same release as gh-3085. |
design methods and optimize the order and natural frequencies such that the passband is just met while maximizing the stopband (or vice versa for stopband filter).
…lso tightened the passband/stopband checks.
TravisCI failures are real:
The second one should be a matter of adding more decimals to the expected result and/or lowering |
I tightened the constraints on the checkers which is why these two are failing; I can revert back to what it was before and they should pass I believe. The strange thing is that these tests don't fail for me on two different systems I have so something is different between the travis system and mine. |
…orth test_bandpass and test_bandstop
The For the other test, I'd put the number at 1e-6 since that still works for Travis. |
Thanks @cimarronm. Squashed the last few commits, edited the commit messages a bit and pushed this PR in f3acfe3. |
design methods and optimize the order and natural frequencies such that
the passband is just met while maximizing the stopband (or vice versa
for stopband filter).