From 0673430eecf20a0f81b65657e69d6a8fad5f6cbc Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Mon, 6 Mar 2023 14:33:56 +0100 Subject: [PATCH] use line length factor from single config source --- config.default.yaml | 2 -- scripts/prepare_sector_network.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config.default.yaml b/config.default.yaml index 1fbc4deb..cd5e16f2 100755 --- a/config.default.yaml +++ b/config.default.yaml @@ -599,8 +599,6 @@ costs: battery inverter: 0. emission_prices: # in currency per tonne emission, only used with the option Ep co2: 0. - lines: - length_factor: 1.25 #to estimate offwind connection costs clustering: simplify_network: diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 3c0ed11d..dd25ec38 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -386,7 +386,7 @@ def update_wind_solar_costs(n, costs): with xr.open_dataset(profile) as ds: underwater_fraction = ds["underwater_fraction"].to_pandas() connection_cost = ( - snakemake.config["costs"]["lines"]["length_factor"] + snakemake.config["lines"]["length_factor"] * ds["average_distance"].to_pandas() * ( underwater_fraction