From ae2dc6f085313b803d5b56ddbf44a401c5aec005 Mon Sep 17 00:00:00 2001 From: Toni Seibold <153275395+toniseibold@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:22:40 +0200 Subject: [PATCH] Update scripts/add_existing_baseyear.py Co-authored-by: Fabian Neumann --- scripts/add_existing_baseyear.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/add_existing_baseyear.py b/scripts/add_existing_baseyear.py index 06f3c9e0c..b665349d8 100644 --- a/scripts/add_existing_baseyear.py +++ b/scripts/add_existing_baseyear.py @@ -255,11 +255,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas name_suffix = f" {generator}{suffix}-{grouping_year}" name_suffix_by = f" {generator}{suffix}-{baseyear}" asset_i = capacity.index + name_suffix - if generator in ["solar", "onwind", "offwind-ac"]: - if generator == "offwind-ac": - cost_key = "offwind" - else: - cost_key = generator + cost_key = generators.split("-")[0] # to consider electricity grid connection costs or a split between # solar utility and rooftop as well, rather take cost assumptions # from existing network than from the cost database