Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two pbar patches #538

Merged
merged 1 commit into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions strax/run_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
from collections import defaultdict
import numpy as np
import pandas as pd
from tqdm import tqdm
import pytz
import datetime

import strax
# use tqdm as loaded in utils (from tqdm.notebook when in a juypyter env)
tqdm = strax.utils.tqdm

export, __all__ = strax.exporter()


Expand Down
3 changes: 2 additions & 1 deletion strax/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ def multi_run(exec_function, run_ids, *args,
for r in run_ids]
for _ in tqdm(as_completed(futures),
desc="Loading %d runs" % len(run_ids),
disable=not multi_run_progress_bar):
disable=not multi_run_progress_bar,
total = len(run_ids)):
pass

result = []
Expand Down