allow false for max_depth

This commit is contained in:
Fabian Neumann 2023-03-05 15:12:20 +01:00
parent 67d878d1d7
commit 8837ba6a5f

View File

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