From 59e33da9a6ca686e1c88ecf03ab0cafeb44c9547 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 28 Mar 2022 17:37:08 +0200 Subject: [PATCH] Add mkdir to subdomain --- data/processing/subdomain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data/processing/subdomain.py b/data/processing/subdomain.py index a2d6e13..54113cc 100644 --- a/data/processing/subdomain.py +++ b/data/processing/subdomain.py @@ -35,6 +35,7 @@ log.debug(f"domain: {domain}") inp_root = pathlib.Path(config.get("inp", "root")) out_root = pathlib.Path(config.get("out", "root")) +out_root.mkdir(exist_ok=True) bathy_inp = inp_root.joinpath(config.get("inp", "base")) bathy_out = out_root.joinpath(config.get("out", "sub")) log.info(f"Reading bathymetry from '{bathy_inp}'")