lossy_bidirectional_links: set length of reversed lines to 0 to avoid double counting in line volume limit

This commit is contained in:
Fabian Neumann 2023-08-29 16:32:01 +02:00
parent 666e79e2fd
commit bde04eeac9

View File

@ -3311,6 +3311,7 @@ def lossy_bidirectional_links(n, carrier, efficiencies={}):
n.links.loc[carrier_i].copy().rename({"bus0": "bus1", "bus1": "bus0"}, axis=1) n.links.loc[carrier_i].copy().rename({"bus0": "bus1", "bus1": "bus0"}, axis=1)
) )
rev_links.capital_cost = 0 rev_links.capital_cost = 0
rev_links.length = 0
rev_links["reversed"] = True rev_links["reversed"] = True
rev_links.index = rev_links.index.map(lambda x: x + "-reversed") rev_links.index = rev_links.index.map(lambda x: x + "-reversed")