Skip to content

Commit

Permalink
fixed #25
Browse files Browse the repository at this point in the history
  • Loading branch information
MatinKhajavi committed Oct 6, 2020
1 parent 093967e commit b75f355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scarches/models/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, leng
percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
filled_len = int(length * iteration // total)
bar = fill * filled_len + '-' * (length - filled_len)
sys.stdout.write('\r%s |%s| %s%s %s' % (prefix, bar, percent, '%', suffix)),
sys.stdout.write(f'\r{prefix} |{bar}| {percent}% {suffix}'.encode("utf-8")),
if iteration == total:
sys.stdout.write('\n')
sys.stdout.flush()

0 comments on commit b75f355

Please sign in to comment.