Skip to content

Commit 98d094e

Browse files
author
cpschau
committed
Merge remote-tracking branch 'origin/main' into refine_dh_areas
2 parents e506603 + 926239b commit 98d094e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/pypsa-de/additional_functionality.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ def add_national_co2_budgets(n, snakemake, national_co2_budgets, investment_year
380380
co2_total_totals = co2_totals[sectors].sum(axis=1) * nyears
381381

382382
for ct in national_co2_budgets:
383+
if ct != "DE":
384+
logger.error(
385+
f"CO2 budget for countries other than `DE` is not yet supported. Found country {ct}. Please check the config file."
386+
)
387+
383388
limit = co2_total_totals[ct] * national_co2_budgets[ct][investment_year]
384389
logger.info(
385390
f"Limiting emissions in country {ct} to {national_co2_budgets[ct][investment_year]:.1%} of "

0 commit comments

Comments
 (0)