From 98797e2e30b642574a18703073b3488af5f1c368 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 29 Nov 2023 13:46:28 +0100 Subject: [PATCH] follow-up to 7ca769bc --- scripts/build_renewable_profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 7b08325b..ed7cf434 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -251,7 +251,7 @@ if __name__ == "__main__": snakemake.input.corine, codes=codes, buffer=buffer, crs=3035 ) - if "ship_threshold" in params: + if params.get("ship_threshold"): shipping_threshold = ( params["ship_threshold"] * 8760 * 6 ) # approximation because 6 years of data which is hourly collected