From 524ad4f80e66c8520718b98dd35cc8e5f367e20d Mon Sep 17 00:00:00 2001 From: Ghislain Vieilledent Date: Wed, 10 Apr 2024 09:21:15 +1100 Subject: [PATCH] Replacing np.int with int --- riskmapjnr/misc/miscellaneous.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riskmapjnr/misc/miscellaneous.py b/riskmapjnr/misc/miscellaneous.py index 395f901..7c11e31 100644 --- a/riskmapjnr/misc/miscellaneous.py +++ b/riskmapjnr/misc/miscellaneous.py @@ -144,8 +144,8 @@ def make_square(rasterfile, square_size=33): nsquare_y = int(np.ceil(nrow / square_size)) nsquare = nsquare_x * nsquare_y # Upper-left coordinates of each square - x = np.arange(0, ncol, square_size, dtype=np.int).tolist() - y = np.arange(0, nrow, square_size, dtype=np.int).tolist() + x = np.arange(0, ncol, square_size, dtype=int).tolist() + y = np.arange(0, nrow, square_size, dtype=int).tolist() # Size (number of col and row) of each square nx = [square_size] * nsquare_x ny = [square_size] * nsquare_y