Skip to content

numpy 2.0 compatibility: numpy.lib.pad should be replaced with numpy.pad #984

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

Open
onitake opened this issue Feb 9, 2025 · 0 comments · May be fixed by #985
Open

numpy 2.0 compatibility: numpy.lib.pad should be replaced with numpy.pad #984

onitake opened this issue Feb 9, 2025 · 0 comments · May be fixed by #985

Comments

@onitake
Copy link

onitake commented Feb 9, 2025

In https://github.com/Ultimaker/Uranium/blob/main/UM/Math/Polygon.py#L175 the numpy function numpy.lib.pad is used, but the numpy.lib namespace has been deprecated in numpy 2.0.

numpy.pad has existed in the main namespace since a very long time, and I believe there never was any reason to import it from numpy.lib.

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 a pull request may close this issue.

1 participant