1
Fork 0

Added mkdir parents for post out

This commit is contained in:
Edgar P. Burkhart 2022-03-04 11:08:55 +01:00
parent c2f867a7dd
commit 113dfc05cc
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

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