Add support for gunziped file to animate
This commit is contained in:
parent
a9230f485f
commit
9e39cafb1d
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ config.read(args.config)
|
|||
out = pathlib.Path(config.get("post", "out"))
|
||||
out.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with gzip.open(out.joinpath("pickle.gz"), "rb") as f:
|
||||
with gzip.open(gzf, "rb") if (
|
||||
gzf := out.joinpath("pickle.gz")
|
||||
).exists() else gzf.with_suffix("").open("rb") as f:
|
||||
model = pickle.load(f)
|
||||
|
||||
x0 = config.getfloat("post", "x")
|
||||
|
|
Loading…
Reference in a new issue