Skip to content

Commit

Permalink
Replacing np.int with int
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainv committed Apr 9, 2024
1 parent c9ca454 commit 524ad4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riskmapjnr/misc/miscellaneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 524ad4f

Please sign in to comment.