stevenpawley / Pyspatialml

Machine learning modelling for spatial data
GNU General Public License v3.0
145 stars 29 forks source link

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

Closed venka-foss4g closed 6 months ago

venka-foss4g commented 1 year ago

Line 2563 of raster.py need be edited

From: # pixel_indices = np.zeros(0, dtype=np.int) To: pixelindices = 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

gbganalyst commented 10 months ago

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.