From c2f867a7dd407ef929e34554b1033c2370d01e8b Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 4 Mar 2022 11:07:43 +0100 Subject: [PATCH] Changed post out folder structure --- swash/processing/post.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swash/processing/post.py b/swash/processing/post.py index 7fec275..7968ce1 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -83,12 +83,12 @@ ax_x.set(xlabel="x (m)", ylabel="z (m)") ax_x.autoscale(axis="x", tight=True) ax_x.grid() -out = pathlib.Path(config.get("post", "out")) +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) -fig.savefig(out.joinpath(f"t{x0}.png")) -fig_r.savefig(out.joinpath(f"R{x0}.png")) -fig_x.savefig(out.joinpath(f"x{t0}.png")) +fig.savefig(out.joinpath(f"t.png")) +fig_r.savefig(out.joinpath(f"R.png")) +fig_x.savefig(out.joinpath(f"x.png")) log.info("Finished post-processing")