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"))