inbo / niche_vlaanderen

Python package to run the NICHE Vlaanderen model
https://inbo.github.io/niche_vlaanderen/
MIT License
5 stars 0 forks source link

numpy future warning #361

Closed cecileherr closed 2 months ago

cecileherr commented 1 year ago

Niche Python Package question

New warning while running a niche validation.

.conda\envs\niche\Lib\site-packages\rasterstats\io.py:200: DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays.  The conversion of -99 to uint8 will fail in the future.
For the old behavior, usually:
    np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
  out[:] = nodata
stijnvanhoey commented 2 months ago

closing, fixed by #370