-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
fix gaussian import from scipy #2332
Conversation
Is this related to any specific version of SciPy or any detail that could be made explicit? It's just curiosity, the change looks good. |
The function has been moved, starting with next release trying to import it from scipy.signal instead of scipy.signal.windows will raise an error. The issue this PR will close is because this is already happening with the latest scipy pre-release |
Hey! as the scipy 1.13 was released yesterday (https://pypi.org/project/scipy/1.13.0/) Will you cut a release with this fix soon 🙏 ? |
Next time things like this happens, it would be more ideal to do something like: try:
# import-change since version 1.13!
from scipy.signal.windows import gaussian
except:
from scipy.signal import gaussian in this way you are backwards-compatible without these cascading problems. (even when things like this was actually a mistake, it seems that |
We generally do that @zerothi. However in that case the issue is we missed the DeprecationWarning, so the issue and PR were open after the deprecation process, when Keep in mind the original code was probably written around scipy 1.0 at which time the |
Ok, I agree with your comments! Thanks!! |
Description
closes #2330
Checklist
PR format?
section of the changelog?
📚 Documentation preview 📚: https://arviz--2332.org.readthedocs.build/en/2332/