-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
DEP: stats.find_repeats
: deprecate function
#21157
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
stats.find_repeats
: deprecate function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess if you do this you need one more spot patched as below (or with a suppression of the warning, or with replacement by the NumPy equivalent). By the way, what happens for the mstats
version of the function if you do this? Does that one get to stay since the mask-related functionality is still unique to SciPy?
--- a/scipy/stats/tests/test_mstats_basic.py
+++ b/scipy/stats/tests/test_mstats_basic.py
@@ -1865,7 +1865,9 @@ class TestCompareWithStats:
xm = np.ma.array(tmp, mask=mask)
x_orig, xm_orig = x.copy(), xm.copy()
- r = stats.find_repeats(x)
+ message = "`scipy.stats.find_repeats` is deprecated..."
+ with pytest.deprecated_call(match=message):
+ r = stats.find_repeats(x)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdhaber I would be happy to review and merge this, it has been a week no complaints from the dev forum
[docs only] Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mdhaber
Reference issue
gh-21077
What does this implement/fix?
The docstring of
find_repeats
mentions:NumPy 1.9 has been available for a while now, and we were not able to find many uses of
find_repeats
(gh-21077), so we discussed removing the function rather than adding array API support.Additional information
Needs approval on discuss before merge.