From 1ed2d65605af10ec5f77c1770f9d003ecac1a564 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Fri, 9 Dec 2022 15:41:20 -0500 Subject: [PATCH] fix typo in online analysis snapshotting --- hopsflow/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hopsflow/util.py b/hopsflow/util.py index 7e213b8..d21cf89 100644 --- a/hopsflow/util.py +++ b/hopsflow/util.py @@ -864,10 +864,10 @@ def ensemble_mean_online( aggregate.dump(str(path)) if every is not None and ( - aggregate.n % every == 0 if isintance(every, int) else every(aggregate.n) + aggregate.n % every == 0 if isinstance(every, int) else every(aggregate.n) ): - path.with_stem(f"{path.stem}_{aggregate.n}") - aggregate.dump(str(path)) + snapshot_path = path.with_stem(f"{path.stem}_{aggregate.n}") + aggregate.dump(str(snapshot_path)) return aggregate.ensemble_value