Hi there! Question reg. PyPSA-EUR
I am encountering errors with the make_summary
snakemake rule.
More specifically with this line
https://github.com/PyPSA/pypsa-eur/blob/7a18740cfb565b5d83d04387f3a7b35c28fa56cc/scripts/make_summary.py#L43
TypeError: unhashable type: 'list'
I ran only 2 scenarios (64 clusters with vopt
and copt
).
Running Python 3.7 w/ most packages up-to-date.
a. Does the rule have a minimum number of scenarios for it to work?
b. Was there maybe an API change I overlooked which disabled compatability?
c .Is there a specific reason, why the pandas dataframes have a single index with tuple values instead of a multiindex (this is really confusing and I get the impression hick-ups pandas quite a bit)
network.graph()
<pypsa.descriptors.OrderedGraph object at 0x1A2CDD30>
network.graph()
returns a networkx
OrderedGraph
pypsa.pf.calculate_Y
for calculating the bus admittance matrix of a synchronous zone https://github.com/PyPSA/PyPSA/blob/master/pypsa/pf.py#L916-L984.
network.shunt_impedance
should be empty.
Thanks, @fneum! That worked well:)
I now am trying to build network under pypsa-eur-sec now using "snakemake -j1 prepare_sector_networks", I encountered the follow error
"...
services: average fraction of non-electric for water is 0.11781164376526447
Aviation
Domestic navigation
Traceback (most recent call last):
File "/home/chengong/.local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'BA'
"
seems that BA got mixed in the EU countries? I used 37 nodes btw, not sure if it is something wrong with how I set it up in the config... Thank you again for your help :)
I wanted to know if the PyPSA is able to take the generator's efficiency curve as an input, instead of only a single value like: efficiency=50.
Kindly advise me if there is any possibility to add the efficiency curve in the simulation.