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

Test against numpy 2.0 #166

Merged
merged 14 commits into from Apr 30, 2024
Merged

Test against numpy 2.0 #166

merged 14 commits into from Apr 30, 2024

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Apr 25, 2024

There are some significant changes in the next release. Hopefully it won't be too hard to port the code to it.

@ocefpaf ocefpaf force-pushed the numpy_2 branch 7 times, most recently from cfe0b31 to 371b43c Compare April 25, 2024 17:16
@ocefpaf ocefpaf force-pushed the numpy_2 branch 2 times, most recently from 0b9597e to 6c8c8d6 Compare April 25, 2024 17:25
@@ -45,7 +45,7 @@
mfuncnames = [mf.name for mf in mfuncs]


@pytest.fixture(params=[-360, 0, 360])
@pytest.fixture(params=[-360., 0., 360.])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardest part was setting up the np2.0 test! This was the only failure we had due to https://numpy.org/devdocs/numpy_2_0_migration_guide.html#changes-to-numpy-data-type-promotion

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@efiring this is the only code change in this PR. Everything else is to be able to set a testing matrix with numpy 2.0. This PR also adds a test for the code generation step that serves both as test and developer breadcrumbs in case we need to do that locally.

@ocefpaf ocefpaf requested a review from efiring April 25, 2024 19:26
Copy link
Member

@efiring efiring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@ocefpaf ocefpaf merged commit 76a7f86 into TEOS-10:main Apr 30, 2024
32 checks passed
@ocefpaf ocefpaf deleted the numpy_2 branch April 30, 2024 19:31
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.

None yet

2 participants