diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index 8db2eda..607066b 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -22,6 +22,7 @@ config.read(args.config) sws_out = pathlib.Path(config.get("swash", "out")) inp = pathlib.Path(config.get("post", "inp")) +inp.mkdir(parents=True, exist_ok=True) log.info(f"Reading swash output from '{sws_out}'") rsws = ReadSwash() @@ -39,7 +40,6 @@ var = { "vz": rsws.read_scalar_lay, } -inp.mkdir(parents=True, exist_ok=True) with ThreadPool() as pool: log.info("Converting all data") pool.map(