diff --git a/swash/processing/bathy.py b/swash/processing/bathy.py index 1574817..b21118a 100644 --- a/swash/processing/bathy.py +++ b/swash/processing/bathy.py @@ -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=" ")