Minor tweaks to swash post-processing
This commit is contained in:
parent
4f6ad7edba
commit
52d6718d70
4 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ config.read(args.config)
|
|||
inp = pathlib.Path(config.get("post", "inp"))
|
||||
root = pathlib.Path(config.get("swash", "out"))
|
||||
out = pathlib.Path(config.get("plot", "out"))
|
||||
out.mkdir(exist_ok=True)
|
||||
out.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
def data(var):
|
||||
|
|
|
@ -22,7 +22,7 @@ config.read(args.config)
|
|||
inp = pathlib.Path(config.get("post", "inp"))
|
||||
root = pathlib.Path(config.get("swash", "out"))
|
||||
out = pathlib.Path(config.get("plot", "out"))
|
||||
out.mkdir(exist_ok=True)
|
||||
out.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
def data(var):
|
||||
|
|
|
@ -13,7 +13,7 @@ class ReadSwash:
|
|||
|
||||
@classmethod
|
||||
def read_nohead(cls, path):
|
||||
subprocess.run(("sed", "-i", r"s/ /\n/g", path))
|
||||
subprocess.run(("sed", "-i", r"s/\s\+/\n/g", path))
|
||||
return np.loadtxt(path)
|
||||
|
||||
def read_time(self, path):
|
||||
|
|
|
@ -40,7 +40,7 @@ var = {
|
|||
}
|
||||
|
||||
inp.mkdir(exist_ok=True)
|
||||
with ThreadPool() as pool:
|
||||
with ThreadPool(len(var)) as pool:
|
||||
log.info("Converting all data")
|
||||
pool.map(
|
||||
lambda x: np.save(
|
||||
|
|
Loading…
Reference in a new issue