Skip to content

Commit

Permalink
ENH: optional tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarnunez committed Jun 17, 2021
1 parent 101e87e commit 6fd403f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions moten/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
pointwise_square,
)

with_tqdm = False

# Make tqdm optional
with_tqdm = True
try:
from tqdm import tqdm
except ImportError:
with_tqdm = False

def pixbypix_covariance_from_frames_generator(data_generator,
batch_size=1000,
Expand Down

0 comments on commit 6fd403f

Please sign in to comment.