From ff3355477857986581d321f50a24fb0c8f6d665e Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 29 Mar 2022 10:47:01 +0200 Subject: [PATCH] Update inp_post for parent mkdir --- swash/config-nb.ini | 2 +- swash/config.ini | 2 +- swash/processing/sws_npz.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/swash/config-nb.ini b/swash/config-nb.ini index 11f2cc2..33812d4 100644 --- a/swash/config-nb.ini +++ b/swash/config-nb.ini @@ -8,7 +8,7 @@ out=out/spec_nb mpi=8 [post] -inp=inp_post +inp=inp_post/spec_nb compare=inp_post_nb out=out_post #nperseg=1024 diff --git a/swash/config.ini b/swash/config.ini index 9bf00a7..b7947c4 100644 --- a/swash/config.ini +++ b/swash/config.ini @@ -8,7 +8,7 @@ out=out/spec mpi=8 [post] -inp=inp_post +inp=inp_post/spec compare=inp_post_nb out=out_post #nperseg=1024 diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index 3c971ab..516e3a5 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -39,7 +39,7 @@ var = { "vz": rsws.read_scalar_lay, } -inp.mkdir(exist_ok=True) +inp.mkdir(parents=True, exist_ok=True) with ThreadPool() as pool: log.info("Converting all data") pool.map(