1
Fork 0

Processing reformat

This commit is contained in:
Edgar P. Burkhart 2022-03-09 15:23:51 +01:00
parent f4ccdb009a
commit f7e64c0a2d
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 4 additions and 6 deletions

View file

@ -137,7 +137,7 @@ ax_x.plot(
ax_x.plot( ax_x.plot(
data["x"], data["x"],
np.maximum(data_comp["watl"][arg_t0, :], -data_comp["botl"]), np.maximum(data_comp["watl"][arg_t0, :], -data_comp["botl"]),
ls="-." ls="-.",
) )
ax_x.axvline(x0, c="k", alpha=0.2) ax_x.axvline(x0, c="k", alpha=0.2)
ax_x.set(xlabel="x (m)", ylabel="z (m)") ax_x.set(xlabel="x (m)", ylabel="z (m)")

View file

@ -34,9 +34,7 @@ with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
path = pathlib.Path(config.get("data", "out_nb")) path = pathlib.Path(config.get("data", "out_nb"))
else: else:
path = pathlib.Path(config.get("data", "out")) path = pathlib.Path(config.get("data", "out"))
shutil.copytree( shutil.copytree(path, tmpdir, dirs_exist_ok=True)
path, tmpdir, dirs_exist_ok=True
)
if config.has_option("swash", "mpi"): if config.has_option("swash", "mpi"):
mpi = ("-mpi", config.get("swash", "mpi")) mpi = ("-mpi", config.get("swash", "mpi"))