1
Fork 0

Changed post out folder structure

This commit is contained in:
Edgar P. Burkhart 2022-03-04 11:07:43 +01:00
parent 46845010f3
commit c2f867a7dd
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 4 additions and 4 deletions

View File

@ -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")