From c517ddaf6813517555cb3f19ad984a11f0dd1bcc Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 4 Mar 2022 10:38:46 +0100 Subject: [PATCH] Fixed data as kwarg --- swash/processing/sws_npz.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index 0afc796..aceb6bd 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -33,23 +33,9 @@ log.info("Reading 'botl'") rsws.read_scalar(sws_out.joinpath("botl.dat")) log.info("Reading 'watl'") rsws.read_scalar(sws_out.joinpath("watl.dat")) -# log.info("Reading 'press'") -# rsws.read_scalar(sws_out.joinpath("press.dat")) -# log.info("Reading 'disch'") -# rsws.read_vector(sws_out.joinpath("disch.dat")) -# log.info("Reading 'ustar'") -# rsws.read_scalar(sws_out.joinpath("ustar.dat")) log.info("Reading 'vel'") rsws.read_vector(sws_out.joinpath("vel.dat")) -# log.info("Reading 'vz'") -# rsws.read_scalar_lay(sws_out.joinpath("vz.dat")) -# log.info("Reading 'velk'") -# rsws.read_vector_lay(sws_out.joinpath("velk.dat")) -# log.info("Reading 'zk'") -# rsws.read_scalar_lay(sws_out.joinpath("zk.dat")) -# log.info("Reading 'brkp'") -# rsws.read_scalar(sws_out.joinpath("brkp.dat")) log.info(f"Writing npz file in '{inp}'") inp.mkdir(exist_ok=True) -np.savez_compressed(inp.joinpath("sws"), t=rsws.t, x=rsws.x, *rsws.data) +np.savez_compressed(inp.joinpath("sws"), t=rsws.t, x=rsws.x, **rsws.data)