You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using rasterio with numpy >=2.0, some of the code in rasterio results in numpy scalar objects instead of Python scalars. I'm not sure what the path forward would be.
importnumpyasnp# Must be using numpy 2.xk=np.arange(10)
min(k) # This results in np.int64(0)k.min() # This also results in np.int64(0)k.min().item() # This results in 0 (a python int)
The text was updated successfully, but these errors were encountered:
When using rasterio with numpy >=2.0, some of the code in rasterio results in numpy scalar objects instead of Python scalars. I'm not sure what the path forward would be.
An example of where this would happen is https://github.com/rasterio/rasterio/blob/main/rasterio/windows.py#L332-L333
Example
The text was updated successfully, but these errors were encountered: