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

Start progressbar at 0% instead of N/A%

parent 0832c2dc
No related branches found
No related tags found
No related merge requests found
...@@ -147,8 +147,12 @@ def run_annotation_all(genomes, threads, force, annot_folder, prodigal_only=Fals ...@@ -147,8 +147,12 @@ def run_annotation_all(genomes, threads, force, annot_folder, prodigal_only=Fals
break break
# If not done, get number of genomes left # If not done, get number of genomes left
remaining = final._number_left remaining = final._number_left
# Update progress bar # Add this to start progressbar with 0% instead of N/A%
bar.update(nbgen - remaining) if remaining == nbgen:
bar.update(0.0000001)
else:
# Update progress bar
bar.update(nbgen - remaining)
# End progress bar # End progress bar
bar.finish() bar.finish()
pool.join() pool.join()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment