Skip to content

Commit

Permalink
fix: progressbar.update - do nothing if no tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
MFreidank committed Jul 28, 2018
1 parent ebeabd3 commit 2382981
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pysgmcmc/progressbar.py
Expand Up @@ -15,6 +15,9 @@ class TrainingProgressbar(object):
def __init__(self, iterable, *args, **kwargs):
self.iterable = iterable

def update(self, *args, **kwargs):
pass

def __iter__(self):
return self

Expand Down

0 comments on commit 2382981

Please sign in to comment.