Skip to content

Commit

Permalink
Update r.tri.py (#948)
Browse files Browse the repository at this point in the history
Fix boolean type: np.bool -> bool
  • Loading branch information
dhdeangelis authored Sep 29, 2023
1 parent 65f0dd8 commit 7a3dfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raster/r.tri/r.tri.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def focal_expr(radius, circular=False):
if circular:
mask = distance_from_centre(radius) <= radius
else:
mask = np.ones((size, size), dtype=np.bool)
mask = np.ones((size, size), dtype=bool)
mask[centre, centre] = False

# mask and flatten the offsets
Expand Down

0 comments on commit 7a3dfb7

Please sign in to comment.