-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
DEP: Alias hanning as an explanatory function of hann #8148
Conversation
I don't understand the build errors.
:/ |
Looking into the last file in the traceback probably clarifies the issue. |
scipy/signal/windows/windows.py
Outdated
|
||
This is for backwards compatibility. See `hann` for more details. | ||
""" | ||
hann(*args, **kwargs) |
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.
Missing return
statement. This line should be
return hann(*args, **kwargs)
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.
derp. I'll fix that.
From the discussion in #228, it looks like |
Ok I'll do that for now. |
a8aba46
to
9c3165c
Compare
(Or this could just wait until #8319) |
I changed it to use numpy.deprecate instead:
Now it's being blocked by deco again. @larsoner it looks like you create the deco function in #7900, do you have an opinion on it blocking these aliases? It's probably a good idea to make PRs fail if function docstrings don't have Parameters sections, but in the case of aliases I think it's ok. |
You can just remove |
So there aren't duplicate help pages misleading people into thinking that they're subtly different.
Using np.deprecate instead
So there aren't duplicate help pages misleading people into thinking
that they're subtly different.
As in #228 (comment)