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
I am using the current master branch or the latest release. Please indicate.
I am running on an up-to-date pypsa-eur environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug
It looks like PyPSA/powerplantmatching#144 has made it into the release of powerplantmatching 0.5.9. It causes the following error for me in pypsa-eur:
ERROR:root:Uncaught exception
Traceback (most recent call last):
File "/home/koen/[...]/.snakemake/scripts/tmp9n0bt3xr.build_powerplants.py", line 213, in <module>
ppl = map_country_bus(ppl, substations)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koen/[...]/lib/python3.11/site-packages/powerplantmatching/export.py", line 105, in map_country_bus
res.append(map_bus(df.query("Country == @c"), buses.query("country == @c")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koen/[...]/lib/python3.11/site-packages/powerplantmatching/export.py", line 78, in map_bus
return df.assign(bus=buses_i[kdtree.query(df[["lon", "lat"]].values)[1]])
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/koen/[...]/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 5412, in __getitem__
result = getitem(key)
^^^^^^^^^^^^
IndexError: index 644 is out of bounds for axis 0 with size 644
I would suggest excluding version 0.5.9 in the environment, i.e. - powerplantmatching>=0.5.5,!=0.5.9 is working for me. Can open a trivial PR if wanted.
The text was updated successfully, but these errors were encountered:
Checklist
master
branch or the latest release. Please indicate.pypsa-eur
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
It looks like PyPSA/powerplantmatching#144 has made it into the release of powerplantmatching 0.5.9. It causes the following error for me in pypsa-eur:
I would suggest excluding version 0.5.9 in the environment, i.e.
- powerplantmatching>=0.5.5,!=0.5.9
is working for me. Can open a trivial PR if wanted.The text was updated successfully, but these errors were encountered: