diff --git a/Snakefile b/Snakefile index 0ebfe89d..5c96c55d 100644 --- a/Snakefile +++ b/Snakefile @@ -343,7 +343,7 @@ rule build_renewable_profiles: ), gebco=lambda w: ( "data/bundle/GEBCO_2014_2D.nc" - if "max_depth" in config["renewable"][w.technology].keys() + if config["renewable"][w.technology].get("max_depth") else [] ), ship_density=lambda w: ( diff --git a/test/config.test1.yaml b/test/config.test1.yaml index a7f52eaa..5a44a394 100755 --- a/test/config.test1.yaml +++ b/test/config.test1.yaml @@ -37,8 +37,10 @@ renewable: cutout: be-03-2013-era5 offwind-ac: cutout: be-03-2013-era5 + max_depth: false offwind-dc: cutout: be-03-2013-era5 + max_depth: false solar: cutout: be-03-2013-era5