allow disabling max_depth through config overwrite

This commit is contained in:
Fabian Neumann 2023-02-22 19:28:07 +01:00
parent 4e75d6c644
commit 67d878d1d7
2 changed files with 3 additions and 1 deletions

View File

@ -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: (

View File

@ -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