From 75f932da981d3bf7997ee578fc2b737ba965f339 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 4 Mar 2022 11:30:23 +0100 Subject: [PATCH] Removed input data from post --- swash/processing/post.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/swash/processing/post.py b/swash/processing/post.py index 8249848..d4dfd97 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -21,12 +21,11 @@ log.info("Starting post-processing") config = configparser.ConfigParser() config.read("config.ini") -cache = pathlib.Path(config.get("data", "out")) +inp = pathlib.Path(config.get("post", "inp")) root = pathlib.Path(config.get("swash", "out")) -log.info(f"Reading bathymetry from '{cache}'") -bathy = pd.read_hdf(cache.joinpath("bathy.h5"), "bathy") -data = np.load(pathlib.Path(config.get("post", "inp")).joinpath("sws.npz")) +log.info(f"Reading bathymetry from '{inp}'") +data = np.load(inp.joinpath("sws.npz")) x, t = data["x"], data["t"] # Cospectral calculations