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

MAINT: Adapt to NumPy 2.0 #146

Merged
merged 2 commits into from
Apr 5, 2024
Merged

MAINT: Adapt to NumPy 2.0 #146

merged 2 commits into from
Apr 5, 2024

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Mar 8, 2024

Otherwise self-tests simply hang: np.VisibleDeprecatinWarning is not found at https://github.com/ev-br/scpdt/blob/main/scpdt/impl.py#L254, so we get into the except Exception: branch and it all goes downhill from there.

cross-ref #79 (comment)

@ev-br
Copy link
Member Author

ev-br commented Mar 8, 2024

There will be more of these. Will be easier to smoke them out when there is a numpy-2.0 compatible scipy build

@ev-br
Copy link
Member Author

ev-br commented Mar 9, 2024

The lack of numpy 2.0 compatible matplotlib is a blocker. Self-tests pass when skipping MPL (cross-ref gh-131) though. FWIW.

@ev-br ev-br added the bug Something isn't working label Mar 9, 2024
In that MPL version (numpy 2.0 compatible?), the text of the user warning
has changed into
UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
@ev-br
Copy link
Member Author

ev-br commented Apr 5, 2024

OK, run tests locally with numpy 2.0 and MPL 3.8.3. The only fix here was to adjust the MPL filter for the display-less backend. SciPy branch had to adjust a bit to the numpy 2.0 scalar repr, the main one is gh-147.
Merging this now to test scipy/scipy#20127

@ev-br ev-br changed the title MAINT: numpy 2.0 moved VisibleDeprecationWarning MAINT: Adapt to NumPy 2.0 Apr 5, 2024
@ev-br ev-br merged commit 1b411f7 into main Apr 5, 2024
4 checks passed
@ev-br ev-br deleted the np2.0 branch April 5, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant