Added creation of output dir
This commit is contained in:
parent
af0ec3cc05
commit
dca8114bb9
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ log.info(
|
|||
if config.has_section("out"):
|
||||
out = pathlib.Path(config.get("out", "root"))
|
||||
log.info(f"Writing output data to '{out}'")
|
||||
out.mkdir(exist_ok=True)
|
||||
np.savetxt(out.joinpath("bathy.dat"), bathy.z, newline=" ")
|
||||
np.savetxt(out.joinpath("hstru.dat"), bathy.hstru, newline=" ")
|
||||
np.savetxt(out.joinpath("poro.dat"), bathy.poro, newline=" ")
|
||||
|
|
Loading…
Reference in a new issue