Skip to content
Snippets Groups Projects
Commit b7983581 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Adapt progress bar to default terminal size

parent 5ee85c94
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ def format_genomes(genomes_ok, res_path, annot_path, prodigal_only, threads=1, q
progressbar.Bar(marker='', left='', right=''),
' ', progressbar.Counter(), "/{}".format(nbgen), ' (',
progressbar.Percentage(), ") - ", progressbar.Timer()]
bar = progressbar.ProgressBar(widgets=widgets, max_value=nbgen, term_width=100).start()
bar = progressbar.ProgressBar(widgets=widgets, max_value=nbgen, term_width=79).start()
# Create a Queue to put logs from processes, and handle them after from a single thread
m = multiprocessing.Manager()
q = m.Queue()
......
......@@ -101,7 +101,7 @@ def analyse_all_genomes(genomes, dbpath, tmp_path, nbn, soft, logger, quiet=Fals
progressbar.Percentage(), ') - ', progressbar.Timer(), ' - ',
progressbar.ETA()
]
bar = progressbar.ProgressBar(widgets=widgets, max_value=nbgen, term_width=100).start()
bar = progressbar.ProgressBar(widgets=widgets, max_value=nbgen, term_width=79).start()
curnum = 1
toremove = []
# Analyse genomes 1 by 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment