From e83c7507fff070c588b4c52c73f354a13fc1d56d Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 29 Mar 2022 10:52:42 +0200 Subject: [PATCH] Fixed mkdir position in sws_npz --- swash/processing/sws_npz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(