Skip to content
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

Compat fix for older numpy versions #517

Merged
merged 3 commits into from Apr 19, 2024
Merged

Conversation

MuellerSeb
Copy link
Contributor

@MuellerSeb MuellerSeb commented Apr 19, 2024

Fixes: #518 #515 (comment)

Before numpy 1.25, there was no exceptions namespace in numpy: https://numpy.org/doc/1.25/release/1.25.0-notes.html#numpy-now-has-an-np-exceptions-namespace

This PR fixes this for older numpy versions by importing VisibleDeprecationWarning from top level if exceptions is not present.

@dfm
Copy link
Owner

dfm commented Apr 19, 2024

Thanks @MuellerSeb!! I've added a job to the tests workflow which should test this issue. As soon as that finishes running I'll merge.

@dfm dfm merged commit 9c5f59b into dfm:main Apr 19, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

emcee 3.1.5 incompatible with numpy < 1.25.0
2 participants