Skip to content

Commit

Permalink
r.buffer: replace deprecated np.int0 with np.intp (#3228)
Browse files Browse the repository at this point in the history
np.int0 is a deprecated alias for np.intp since np 1.24
  • Loading branch information
pesekon2 committed Nov 16, 2023
1 parent 3eacd2a commit 9742987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/grass/pygrass/raster/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np


_CELL = ("int", "int0", "int8", "int16", "int32", "int64")
_CELL = ("int", "intp", "int8", "int16", "int32", "int64")
CELL = tuple([getattr(np, attr) for attr in _CELL if hasattr(np, attr)])
_FCELL = "float", "float16", "float32"
FCELL = tuple([getattr(np, attr) for attr in _FCELL if hasattr(np, attr)])
Expand Down

0 comments on commit 9742987

Please sign in to comment.