Skip to content

Commit

Permalink
catch divide by 0 by a in terminal updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TahiriNadia authored Nov 22, 2024
1 parent d24d039 commit 08cda12
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions aphylogeo/multiProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,11 @@ def terminalUpdate(self, memBlock):
)

print("Min memory per: ", round(self.mem1.value / 10000000) / 100, "Gb ", end="\n", flush=True)

print("Time for one: ", round(self.timeForOne.value * 10) / 10, " seconds ", flush=True)

print("---")

print("Started: ", s, "/", a, " ", round(s / a * 100), "% ", flush=True)
print("Finished: ", f, "/", s, " ", round(f / a * 100), "% ", flush=True)
if (a!=0):
print("Started: ", s, "/", a, " ", round(s / a * 100), "% ", flush=True)
print("Finished: ", f, "/", s, " ", round(f / a * 100), "% ", flush=True)
print("Time elapsed: ", eTime, " seconds ", flush=True)
print("---")

Expand Down

0 comments on commit 08cda12

Please sign in to comment.