From f7e64c0a2d9b6ba9ae5ce323b2657fd2ccdec508 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Wed, 9 Mar 2022 15:23:51 +0100 Subject: [PATCH] Processing reformat --- swash/processing/bathy_nb.py | 4 ++-- swash/processing/post.py | 2 +- swash/processing/swash.py | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/swash/processing/bathy_nb.py b/swash/processing/bathy_nb.py index dace50a..ead906d 100644 --- a/swash/processing/bathy_nb.py +++ b/swash/processing/bathy_nb.py @@ -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}") diff --git a/swash/processing/post.py b/swash/processing/post.py index eeb807e..ad60c73 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -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)") diff --git a/swash/processing/swash.py b/swash/processing/swash.py index c86a769..0d8b294 100644 --- a/swash/processing/swash.py +++ b/swash/processing/swash.py @@ -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"))