Uranium icon indicating copy to clipboard operation
Uranium copied to clipboard

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

Open onitake opened this issue 10 months ago • 0 comments

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.

onitake avatar Feb 09 '25 20:02 onitake