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