File: 1000-numpy-lib-deprecation.patch

package info (click to toggle)
uranium 5.0.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,328 kB
  • sloc: python: 31,765; sh: 132; makefile: 12
file content (11 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
--- a/UM/Math/Polygon.py
+++ b/UM/Math/Polygon.py
@@ -169,7 +169,7 @@
         transformation[2][1] = delta_scale * -origin[1]
 
         # Apply that affine transformation to the point data.
-        point_data = numpy.lib.pad(self._points, ((0, 0), (0, 1)), "constant", constant_values = (1))  # Turn 3D to do an affine transformation.
+        point_data = numpy.pad(self._points, ((0, 0), (0, 1)), "constant", constant_values = (1))  # Turn 3D to do an affine transformation.
         point_data = point_data.dot(transformation)
 
         return Polygon(point_data[:, :-1])  # Leave out the affine component.