1
Fork 0

Added creation of output dir

This commit is contained in:
Edgar P. Burkhart 2022-03-02 12:24:23 +01:00
parent af0ec3cc05
commit dca8114bb9
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

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