Merge pull request #803 from millingermarkus/master

Added co2 storage shadow price output to csv
This commit is contained in:
Fabian Neumann 2023-12-29 10:41:41 +01:00 committed by GitHub
commit 57b4724ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,6 +446,10 @@ def calculate_metrics(n, label, metrics):
if "CO2Limit" in n.global_constraints.index: if "CO2Limit" in n.global_constraints.index:
metrics.at["co2_shadow", label] = n.global_constraints.at["CO2Limit", "mu"] metrics.at["co2_shadow", label] = n.global_constraints.at["CO2Limit", "mu"]
if "co2_sequestration_limit" in n.global_constraints.index:
metrics.at["co2_storage_shadow", label] = n.global_constraints.at[
"co2_sequestration_limit", "mu"
]
return metrics return metrics