Changed output directories

This commit is contained in:
Edgar P. Burkhart 2022-03-03 10:58:49 +01:00
parent 588318e4ce
commit 420b9cfd4f
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
5 changed files with 6 additions and 9 deletions

View file

@ -62,8 +62,8 @@ log.info(
f"n: {bathy.index.size}"
)
if config.has_section("out"):
out = pathlib.Path(config.get("out", "root"))
if config.has_option("data", "out"):
out = pathlib.Path(config.get("data", "out"))
log.info(f"Writing output data to '{out}'")
out.mkdir(exist_ok=True)
np.savetxt(out.joinpath("bathy.dat"), bathy.z, newline=" ")