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

@ -51,9 +51,9 @@ bathy.z[bathy_lores_pd.index] = bathy_lores_pd
bathy.z[bathy_hires_pd.index] = bathy_hires_pd
bathy.z = np.minimum(bathy.z, -15)
#bathy.loc[x_hstru, ("hstru", "poro", "psize")] = np.array(
# bathy.loc[x_hstru, ("hstru", "poro", "psize")] = np.array(
# (hstru, poro, psize)
#).T
# ).T
bathy = bathy.reindex(bathy_lores_pd.index)
log.debug(f"Bathymetry:\n{bathy}")

View file

@ -137,7 +137,7 @@ ax_x.plot(
ax_x.plot(
data["x"],
np.maximum(data_comp["watl"][arg_t0, :], -data_comp["botl"]),
ls="-."
ls="-.",
)
ax_x.axvline(x0, c="k", alpha=0.2)
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"))
else:
path = pathlib.Path(config.get("data", "out"))
shutil.copytree(
path, tmpdir, dirs_exist_ok=True
)
shutil.copytree(path, tmpdir, dirs_exist_ok=True)
if config.has_option("swash", "mpi"):
mpi = ("-mpi", config.get("swash", "mpi"))