I'm trying to run PyPSA-Eur-Sec with myopic on a windows machine and the workflow always stops at the rule add_base_year. The error code looks like:
rule add_existing_baseyear:
jobid: 2
wildcards: network=elec, simpl=, clusters=3, lv=1.0, opts=, sector_opts=Co2L0-3H-T-H-B-I-solar3-dist1, planning_horizons=2020
resources: mem_mb=2000
adding power capacities installed before baseyear
Traceback (most recent call last):
add_power_capacities_installed_before_baseyear(n, grouping_years, costs, baseyear)
df_agg["grouping_year"] = np.take(grouping_years,
File "<__array_function__ internals>", line 5, in take
File "C:\Users\ErikR\anaconda3\envs\pypsa-eur\lib\site-packages\numpy\core\fromnumeric.py", line 191, in take
return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode)
File "C:\Users\ErikR\anaconda3\envs\pypsa-eur\lib\site-packages\numpy\core\fromnumeric.py", line 55, in _wrapfunc
return _wrapit(obj, method, *args, **kwds)
File "C:\Users\ErikR\anaconda3\envs\pypsa-eur\lib\site-packages\numpy\core\fromnumeric.py", line 44, in _wrapit
result = getattr(asarray(obj), method)(*args, **kwds)
IndexError: index 9 is out of bounds for axis 0 with size 9
[Tue Dec 8 15:48:04 2020]
Error in rule add_existing_baseyear:
jobid: 2
I've tried several versions of PyPSA-Eur and PyPSA-Eur-Sec to assure that the Problem is not Version based and it's reproducible.
Because of my RAM I'm running PyPSA with only one country (Germany), but I've tested it with three Countries as well and there the Problem still occurs.
In the Config I've just changed the Planning Horizon, Country Selection and Amount of Clusters.
I'm very grateful for any help.
Best wishes,
Erik