solve_network: fix sign for country CO2 when bus0=atmosphere
So that DAC extracts CO2 rather than pumping into air; for p>0, link withdraws from bus0, but injects into bus1/2/3, so you have to take account of this sign difference-
This commit is contained in:
parent
cea62de438
commit
66178a5a27
@ -814,7 +814,7 @@ def add_co2limit_country(n, limit_countries, nyears=1.0):
|
||||
for port in [col[3:] for col in n.links if col.startswith("bus")]:
|
||||
if port == str(0):
|
||||
efficiency = (
|
||||
n.links["efficiency"].apply(lambda x: 1.0).rename("efficiency0")
|
||||
n.links["efficiency"].apply(lambda x: -1.0).rename("efficiency0")
|
||||
)
|
||||
elif port == str(1):
|
||||
efficiency = n.links["efficiency"]
|
||||
|
Loading…
Reference in New Issue
Block a user