From 134b05e17acd5575d7a309fb36004faf8049bc5b Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 3 Mar 2022 15:48:01 +0100 Subject: [PATCH] Fixed typo in sws_npz --- swash/processing/sws_npz.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index d9acc1d..1404c64 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -28,9 +28,9 @@ bathy = pd.read_hdf(data_out.joinpath("bathy.h5"), "bathy") n_x = bathy.index.size log.info(f"Reading swash output from '{sws_out}'") -botl_np = read_nohead_scalar(root.joinpath("botl.dat"), n_x) -dep = np.maximum(0, read_nohead_scalar(root.joinpath("dep.dat"), n)) -vel = read_nohead_vect(root.joinpath("vel.dat"), n) +botl_np = read_nohead_scalar(sws_out.joinpath("botl.dat"), n_x) +dep = np.maximum(0, read_nohead_scalar(sws_out.joinpath("dep.dat"), n)) +vel = read_nohead_vect(sws_out.joinpath("vel.dat"), n) botl.savez_compressed(inp.joinpath("botl")) dep.savez_compressed(inp.joinpath("dep"))