formulate sequestration limit constraint as operational_limit constraint

This commit is contained in:
Fabian 2023-09-22 10:51:36 +02:00 committed by Fabian Neumann
parent c71c4e7567
commit be5331c89c
2 changed files with 2 additions and 5 deletions

View File

@ -587,7 +587,7 @@ def add_co2_tracking(n, costs, options):
)
n.add("Carrier", "co2 stored")
# this tracks CO2 stored, e.g. underground
# this tracks CO2 sequestered, e.g. underground
sequestration_buses = spatial.co2.nodes.str.replace(" stored", " sequestered")
n.madd(
"Bus",

View File

@ -182,9 +182,6 @@ def add_co2_sequestration_limit(n, config, limit=200):
"""
Add a global constraint on the amount of Mt CO2 that can be sequestered.
"""
n.carriers.loc["co2 stored", "co2_absorptions"] = -1
n.carriers.co2_absorptions = n.carriers.co2_absorptions.fillna(0)
limit = limit * 1e6
for o in opts:
if "seq" not in o:
@ -396,7 +393,7 @@ def prepare_network(
if snakemake.params["sector"]["limit_max_growth"]["enable"]:
n = add_max_growth(n, config)
if n.stores.carrier.eq("co2 stored").any():
if n.stores.carrier.eq("co2 sequestered").any():
limit = co2_sequestration_potential
add_co2_sequestration_limit(n, config, limit=limit)