Dear group,
When I run the newest pypsa-eur version with UA added as a country, the rule determine_availability_matrix_MD_UA results in the error I posted below. Does anyone have an idea what could be the issue? The environment I used is the one from the latest clone.
Best,
Georg
ERROR:root:Uncaught exception
Traceback (most recent call last):
File "/trinity/home/thomgeo/flex/pypsa-eur/.snakemake/scripts/tmphk2mq9k_.determine_availability_matrix_MD_UA.py", line 154, in <module>
gpd.GeoSeries(regions_geometry.unary_union).plot(ax=ax, color="none")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trinity/home/thomgeo/micromamba/envs/pypsa-uc/lib/python3.11/site-packages/geopandas/base.py", line 1219, in unary_union
return self.geometry.values.unary_union()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trinity/home/thomgeo/micromamba/envs/pypsa-uc/lib/python3.11/site-packages/geopandas/array.py", line 743, in unary_union
return vectorized.unary_union(self._data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trinity/home/thomgeo/micromamba/envs/pypsa-uc/lib/python3.11/site-packages/geopandas/_vectorized.py", line 1186, in unary_union
data = shapely.union_all(data)
^^^^^^^^^^^^^^^^^^^^^^^
File "/trinity/home/thomgeo/micromamba/envs/pypsa-uc/lib/python3.11/site-packages/shapely/decorators.py", line 77, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/trinity/home/thomgeo/micromamba/envs/pypsa-uc/lib/python3.11/site-packages/shapely/set_operations.py", line 419, in union_all
return lib.unary_union(collections, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
shapely.errors.GEOSException: TopologyException: side location conflict at 5049147.2678171201 4019229.260334048. This can occur if the input geometry is invalid.
RuleException:
CalledProcessError in file /trinity/home/thomgeo/flex/pypsa-eur/rules/build_electricity.smk, line 214: