mirror of
https://github.com/vale981/hopsflow
synced 2025-03-06 01:01:38 -05:00
fix tqdm for the case where the total sample number is unknown
This commit is contained in:
parent
11c21d28b4
commit
6ea296da26
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ def ensemble_mean(
|
|||
10,
|
||||
)
|
||||
|
||||
for res in tqdm(result_iter, total=(N - 1)):
|
||||
for res in tqdm(result_iter, total=(N - 1) if N else None):
|
||||
aggregate.update(res)
|
||||
|
||||
if every is not None and (aggregate.n % every) == 0 or aggregate.n == N:
|
||||
|
|
Loading…
Add table
Reference in a new issue