Skip to content

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Oct 14, 2024

This is a follow-up to gh-21211: we deprecated object arrays as inputs to lfilter, but forgot or did not know about sosfilt. These two should probably be in sync, hence follow the lfilter deprecation in sosfilt.

This is a follow-up to scipygh-21211: we deprecated object arrays
as inputs to `lfilter`, but forgot or did not know about `sosfilt`.
These two should probably be in sync, hence follow the lfilter
deprecation in sosfilt.
@ev-br ev-br added scipy.signal deprecated Items related to behavior that has been deprecated labels Oct 14, 2024
@ev-br ev-br requested review from larsoner and ilayn as code owners October 14, 2024 20:00
@@ -3565,6 +3565,13 @@ def test_sosfilt_zi(self, dt):
_, zf = sosfilt(sos, np.ones(40, dt), zi=zi.tolist())
assert_allclose_cast(zf, zi, rtol=1e-13)

def test_dtype_deprecation(self, dt):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An obvious annoyance is that this test runs 4 times for each dt value, but doesn't consume dt.

Not sure if that meets the threshold to remove it from the parametrized class abstraction or not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. Did not pass my threshold, the convenience of having all sosfilt testing in a class won over, fwiw.
Can rework, of course, if you've a strong opinion to the contrary?

@tylerjereddy tylerjereddy added this to the 1.15.0 milestone Oct 14, 2024
@tylerjereddy
Copy link
Contributor

This PR looks "ok" to me, but I believe I found a few issues with the origina/precedent PR in the cross-listed ticket. I'll label that good first issue, since they look like copy-paste errors mostly.

@tylerjereddy tylerjereddy merged commit a1ab237 into scipy:main Oct 19, 2024
40 checks passed
@j-bowhay j-bowhay added the needs-release-note a maintainer should add a release note written by a reviewer/author to the wiki label Oct 19, 2024
@j-bowhay j-bowhay mentioned this pull request Oct 19, 2024
32 tasks
@lucascolley lucascolley removed the needs-release-note a maintainer should add a release note written by a reviewer/author to the wiki label Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated Items related to behavior that has been deprecated scipy.signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants