Skip to content

Commit

Permalink
Remove deprecated np.int usages (#7059)
Browse files Browse the repository at this point in the history
* np.int -> np.int32

* Update test/test_transforms.py
  • Loading branch information
pmeier committed Jan 6, 2023
1 parent 1353df9 commit 35f68a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ def _test_transformation(self, angle, translate, scale, shear, pil_image, input_
# https://github.com/python-pillow/Pillow/blob/71f8ec6a0cfc1008076a023c0756542539d057ab/
# src/libImaging/Geometry.c#L1060
input_pt = np.array([x + 0.5, y + 0.5, 1.0])
res = np.floor(np.dot(inv_true_matrix, input_pt)).astype(np.int)
res = np.floor(np.dot(inv_true_matrix, input_pt)).astype(int)
_x, _y = res[:2]
if 0 <= _x < input_img.shape[1] and 0 <= _y < input_img.shape[0]:
true_result[y, x, :] = input_img[_y, _x, :]
Expand Down

0 comments on commit 35f68a0

Please sign in to comment.