Added mkdir parents for post out
This commit is contained in:
parent
c2f867a7dd
commit
113dfc05cc
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ ax_x.grid()
|
||||||
|
|
||||||
out = pathlib.Path(config.get("post", "out")).joinpath(f"t{t0}x{x0}")
|
out = pathlib.Path(config.get("post", "out")).joinpath(f"t{t0}x{x0}")
|
||||||
log.info(f"Saving plots in '{out}'")
|
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.savefig(out.joinpath(f"t.png"))
|
||||||
fig_r.savefig(out.joinpath(f"R.png"))
|
fig_r.savefig(out.joinpath(f"R.png"))
|
||||||
|
|
Loading…
Reference in a new issue