[x] I am using the current main branch or the latest release. Please indicate.
[x] I am running on an up-to-date pypsa-earth environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug
Good day. The issue is related to addition of SMR into the network in prepare_sector_network.py script in h2_hc_conversions function. When adding SMR of SMR CC, the error of mismatch between bus1 and bus0. In particular, nodes are used for bus1 and spatial.gas.nodes are used for bus0. It causes error, as nodes consider only AC nodes, while spatial.gas.nodes considers both AC and DC nodes. So error is related to this piece of code:
Thanks for pointing this out. So far we only worked with force_AC turned on.
A good permanent solution here will be great. It has to accommodate for the Force_AC case as well
@yerbol-akhmetov
Checklist
main
branch or the latest release. Please indicate.pypsa-earth
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
Good day. The issue is related to addition of SMR into the network in
prepare_sector_network.py
script inh2_hc_conversions
function. When adding SMR of SMR CC, the error of mismatch between bus1 and bus0. In particular,nodes
are used for bus1 andspatial.gas.nodes
are used for bus0. It causes error, asnodes
consider only AC nodes, whilespatial.gas.nodes
considers both AC and DC nodes. So error is related to this piece of code:Error Message
The fix will be presented in this PR @hazemakhalek