From 7ca769bcf01272cd56cf079ca5faa04f06dd2835 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 29 Nov 2023 12:09:39 +0100 Subject: [PATCH] option to skip ship_raster download if not added as exclusion zone --- rules/build_electricity.smk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/build_electricity.smk b/rules/build_electricity.smk index f9fdc3ac..0be36ff7 100644 --- a/rules/build_electricity.smk +++ b/rules/build_electricity.smk @@ -226,7 +226,7 @@ rule build_renewable_profiles: ), ship_density=lambda w: ( RESOURCES + "shipdensity_raster.tif" - if "ship_threshold" in config["renewable"][w.technology].keys() + if config["renewable"][w.technology].get("ship_threshold", False) else [] ), country_shapes=RESOURCES + "country_shapes.geojson",