From 113dfc05cc0effb0faa0aa7c186cfc4f8c9637a0 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 4 Mar 2022 11:08:55 +0100 Subject: [PATCH] Added mkdir parents for post out --- swash/processing/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swash/processing/post.py b/swash/processing/post.py index 7968ce1..63c9935 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -85,7 +85,7 @@ ax_x.grid() out = pathlib.Path(config.get("post", "out")).joinpath(f"t{t0}x{x0}") log.info(f"Saving plots in '{out}'") -out.mkdir(exist_ok=True) +out.mkdir(parents=True, exist_ok=True) fig.savefig(out.joinpath(f"t.png")) fig_r.savefig(out.joinpath(f"R.png"))