Skip to content

Commit

Permalink
correct bar-output and logs printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
YAY-C committed Oct 20, 2023
1 parent 3cfe397 commit 54660d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qstack/spahm/rho/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,13 @@ def load_reps(f_in, from_list=True, single=False, with_labels=False, local=True,
def add_progressbar(legend='', max_value=100):
import progressbar
import time
import logging
progressbar.streams.wrap_stderr()
logging.basicConfig()
widgets=[\
' [', progressbar.Timer(), '] ',\
progressbar.Bar(),\
' (', progressbar.ETA(), ') ',]
' (', progressbar.ETA(), ') ']
bar = progressbar.ProgressBar(widgets=widgets, max_value=max_value).start()
return bar

Expand Down

0 comments on commit 54660d0

Please sign in to comment.