Unverified Commit 35f68a09 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

Remove deprecated np.int usages (#7059)

* np.int -> np.int32

* Update test/test_transforms.py
parent 1353df9e
......@@ -2067,7 +2067,7 @@ class TestAffine:
# 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, :]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment