Merge branch 'swash' of ssh://git.edgarpierre.fr:39529/m2cce/internship into swash
This commit is contained in:
commit
1a998dc961
5 changed files with 9 additions and 15 deletions
|
@ -22,6 +22,7 @@ config.read(args.config)
|
|||
|
||||
sws_out = pathlib.Path(config.get("swash", "out"))
|
||||
inp = pathlib.Path(config.get("post", "inp"))
|
||||
inp.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
log.info(f"Reading swash output from '{sws_out}'")
|
||||
rsws = ReadSwash()
|
||||
|
@ -32,14 +33,13 @@ var = {
|
|||
"dep": rsws.read_scalar,
|
||||
"botl": rsws.read_const,
|
||||
"watl": rsws.read_scalar,
|
||||
"vel": rsws.read_vector,
|
||||
"press": rsws.read_scalar,
|
||||
"pressk": rsws.read_scalar_lay,
|
||||
"nhprsk": rsws.read_scalar_lay,
|
||||
"zk": rsws.read_scalar_lay,
|
||||
"velk": rsws.read_vector_lay,
|
||||
"vz": rsws.read_scalar_lay,
|
||||
}
|
||||
|
||||
inp.mkdir(exist_ok=True)
|
||||
with ThreadPool(len(var)) as pool:
|
||||
log.info("Converting all data")
|
||||
pool.map(
|
||||
|
|
Reference in a new issue