-
Notifications
You must be signed in to change notification settings - Fork 49
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
Numpy2.0 migration #427
Comments
Hm, I tried that change in the vmec2000 repo, but there are various errors in the vmec2000 CI now. Looping in @mbkumar @andrewgiuliani @daringli @rogeriojorge in case anyone can help. |
Now thinking we might want to temporarily force numpy<2.0 in all runners, there are other dependencies like f90wrap that use the deprecated oldest-supported-numpy that need to be patched, as well as that a new pyoculus needs to be uploaded to pypi as we resolve all the dependencies |
Update: f90wrap needs to be adapted as well to make spec (and simsopt) run with numpy 2.0. Working with the upstream to merge a pull-request. In the meantime we can try to force the runners to use a 1.x version of numpy, as I tried in PR #429 Dependencies that still need to be patched:
|
nptyping does not seem to have any compatibility with numpy2.0, and when installed under 2.0 raises an exception upon import. Can we replace the dependency? @mbkumar, I see you added it, what does nptyping allow us to do that numpy.typing cannot provide? |
|
Looks like development on nptying ceased last year. We should switch to |
Tests are failing because of a few deprecated numpy uses. See the branch ml/vmec_update_for_numpy_2 and it's tests for progress. @florianwechsung the |
@smiet |
@mbkumar You need to use the main_off branch, this is up-to-date with remote, works with numpy2.0 and has an open pull request. For now this branch is needed for the SPEC installation yes, the upstream branch fails because variables contain python keywords. |
Sorry @mbkumar, the new branch also needs (for the time being) the See the changes I made the
Hopefully this PR will be resolved tomorrow. |
@smiet Thanks for letting me know. I'll wait till the PRs are merged. Please ping me once the PRs are merged. |
@mbkumar The new version of SPEC is merged into master |
I vaguely recall using randomgen because the standard numpy.random does not satisfy certain independence conditions when running in parallel. I'm travelling this week but will have a look on the weekend. Please ping me again if I don't come back to you by Monday. |
Looks like most of the If you don't have time, I can take the lead in replacing |
The container build is failing because the SPEC and VMEC2000 compilation step are failing.
The migration guide to numpy2.0 is given here.
I will work on getting SPEC up and running with numpy 2.0, @landreman can you have a look at VMEC? from this link it looks like this is what should be added:
The text was updated successfully, but these errors were encountered: