[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7241efd3a4
commit
4f28dfd4fd
@ -220,7 +220,10 @@ rule build_renewable_profiles:
|
|||||||
gebco=ancient(
|
gebco=ancient(
|
||||||
lambda w: (
|
lambda w: (
|
||||||
"data/bundle/GEBCO_2014_2D.nc"
|
"data/bundle/GEBCO_2014_2D.nc"
|
||||||
if (config["renewable"][w.technology].get("max_depth") or config["renewable"][w.technology].get("min_depth"))
|
if (
|
||||||
|
config["renewable"][w.technology].get("max_depth")
|
||||||
|
or config["renewable"][w.technology].get("min_depth")
|
||||||
|
)
|
||||||
else []
|
else []
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -269,8 +269,10 @@ if __name__ == "__main__":
|
|||||||
excluder.add_raster(snakemake.input.gebco, codes=func, crs=4326, nodata=-1000)
|
excluder.add_raster(snakemake.input.gebco, codes=func, crs=4326, nodata=-1000)
|
||||||
|
|
||||||
if params.get("min_depth"):
|
if params.get("min_depth"):
|
||||||
func = functools.partial(np.greater,-params['min_depth'])
|
func = functools.partial(np.greater, -params["min_depth"])
|
||||||
excluder.add_raster(snakemake.input.gebco, codes=func, crs=4326, nodata=-1000, invert=True)
|
excluder.add_raster(
|
||||||
|
snakemake.input.gebco, codes=func, crs=4326, nodata=-1000, invert=True
|
||||||
|
)
|
||||||
|
|
||||||
if "min_shore_distance" in params:
|
if "min_shore_distance" in params:
|
||||||
buffer = params["min_shore_distance"]
|
buffer = params["min_shore_distance"]
|
||||||
|
Loading…
Reference in New Issue
Block a user