Open irm-codebase opened 1 month ago
After digging around, I confirmed that the issue is an unpinned numpy
version.
Pinning numpy = 1.23
will solve the issue.
https://github.com/PyPSA/atlite/blob/16c02fd4aa1816f73d96ed5ae52b1be69f671b18/atlite/gis.py#L378
Could you try setting this to int16? That might solve it.
(anyway I observed a potential performance regression with numpy 2 and we should pin the version for now)
@fneum did the test, int16
fixed it!
Version Checks (indicate both or one)
[x] I have confirmed this bug exists on the lastest release of Atlite.
[ ] I have confirmed this bug exists on the current
master
branch of Atlite.Issue Description
While trying to reproduce the land availability example, the following error is returned.
It seems like this is caused by a depreciated functionality in
numpy
: https://github.com/numpy/numpy/issues/26596Either
numpy
or something else needs to be pinned in the environment, maybe?Reproducible Example
Expected Behavior
Reproducing the example should be possible.
Notes: the
.tif
was downloaded from the CORINE website.Installed Versions