Processing reformat
This commit is contained in:
parent
f4ccdb009a
commit
f7e64c0a2d
3 changed files with 4 additions and 6 deletions
|
@ -51,9 +51,9 @@ bathy.z[bathy_lores_pd.index] = bathy_lores_pd
|
||||||
bathy.z[bathy_hires_pd.index] = bathy_hires_pd
|
bathy.z[bathy_hires_pd.index] = bathy_hires_pd
|
||||||
bathy.z = np.minimum(bathy.z, -15)
|
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)
|
# (hstru, poro, psize)
|
||||||
#).T
|
# ).T
|
||||||
|
|
||||||
bathy = bathy.reindex(bathy_lores_pd.index)
|
bathy = bathy.reindex(bathy_lores_pd.index)
|
||||||
log.debug(f"Bathymetry:\n{bathy}")
|
log.debug(f"Bathymetry:\n{bathy}")
|
||||||
|
|
|
@ -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)")
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue