From 35f68a09f94b2d7afb3f6adc2ba850216413f28e Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Fri, 6 Jan 2023 09:54:39 +0100 Subject: [PATCH] Remove deprecated np.int usages (#7059) * np.int -> np.int32 * Update test/test_transforms.py --- test/test_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_transforms.py b/test/test_transforms.py index e0f8d4a5927..6534caa90b2 100644 --- a/test/test_transforms.py +++ b/test/test_transforms.py @@ -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, :]