option to skip ship_raster download if not added as exclusion zone

This commit is contained in:
Fabian Neumann 2023-11-29 12:09:39 +01:00
parent b1d999f35d
commit 7ca769bcf0

View File

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