Pyspatialml icon indicating copy to clipboard operation
Pyspatialml copied to clipboard

Change needed on raster.py Line 2563 pixel_indices = np.zeros(0, dtype=np.int)

Open venka-foss4g opened this issue 1 year ago • 1 comments

Line 2563 of raster.py need be edited

From: # pixel_indices = np.zeros(0, dtype=np.int) To: pixel_indices = np.zeros(0, dtype=np.int_)

As numpy.int was has been removed in NumPy >= 1.24

https://stackoverflow.com/questions/74946845/attributeerror-module-numpy-has-no-attribute-int

venka-foss4g avatar Sep 02 '23 02:09 venka-foss4g

Thank you, @venka-foss4g, I just changed mine too. I think it is good to create a pull request for these changes. I can take it up.

gbganalyst avatar Jan 10 '24 15:01 gbganalyst