From 8837ba6a5f1f179bf892a03dc7f9874f6d5acd45 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Sun, 5 Mar 2023 15:12:20 +0100 Subject: [PATCH] allow false for max_depth --- 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 a132115b..01e050a7 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -256,7 +256,7 @@ if __name__ == "__main__": snakemake.input.ship_density, codes=func, crs=4326, allow_no_overlap=True ) - if "max_depth" in config: + if config.get('max_depth'): # lambda not supported for atlite + multiprocessing # use named function np.greater with partially frozen argument instead # and exclude areas where: -max_depth > grid cell depth