Closed birgits closed 10 months ago
Hi Birgit. I was able to run eHV using your notebook but only when "foreign_lines": {"carrier": "AC"}. When the carrier is set to "DC", the next error appears: INFO:etrago.cluster.electrical:Start ehv clustering WARNING:pypsa.io:The following Line have buses which are not defined: Index(['25029', '18661', '26486', '1349', '16096', '7656', '7701'], dtype='object', name='Line') WARNING:pypsa.io:The following Link have buses which are not defined: Index(['N29220', 'N29221', 'N29222', 'N29223', 'N29224', 'N29225', 'N29228', 'N29229', 'N29230', 'N29231', ... 'N28102', 'N8338', 'N8236', 'N3937', 'N20802', 'N28101', 'N28243', 'N20616', 'N22629', 'N20904'], dtype='object', name='Link', length=144) WARNING:pypsa.io:The following Link have buses which are not defined: Index(['N29222', 'N29225', 'N29245', 'N29248', 'N29249', 'N29262', 'N29264', 'N29265', 'N29272', 'N29273', ... 'N3937', 'N20802', 'N28101', 'N28243', 'N20616', 'N22629', 'N20904', 'N7497', 'N16326', 'N16569'], dtype='object', name='Link', length=105)
File ~/env/etrago310/lib/python3.10/site-packages/spyder_kernels/py3compat.py:356 in compat_exec exec(code, globals, locals)
File ~/git/eTraGo/etrago/appl.py:671 etrago = run_etrago(args, json_path=None)
File ~/git/eTraGo/etrago/appl.py:637 in run_etrago etrago.ehv_clustering()
File ~/git/eTraGo/etrago/cluster/electrical.py:477 in ehv_clustering
File ~/git/eTraGo/etrago/cluster/electrical.py:382 in cluster_on_extra_high_voltage
File ~/env/etrago310/lib/python3.10/site-packages/pypsa/components.py:1237 in determine_network_topology adjacency_matrix = self.adjacency_matrix(
File ~/env/etrago310/lib/python3.10/site-packages/pypsa/graph.py:165 in adjacency_matrix return sp.sparse.coo_matrix(
File ~/env/etrago310/lib/python3.10/site-packages/scipy/sparse/_coo.py:204 in init self._check()
File ~/env/etrago310/lib/python3.10/site-packages/scipy/sparse/_coo.py:297 in _check raise ValueError('negative column index found')
ValueError: negative column index found
I will deal with this problem.
Was this issue solved by merging #676?
Yes. It was.
When I try to run the EHV clustering I get the following error:
Also, when I restore the network from csv and then try to run the EHV clustering, I get an error, that the session is not set. It could also be useful to fix that.
To reconstruct the errors, you can use the etrago notebook for the hyBit workshops.