Commit 5ce516a3 by Calen Pennington

Clamp progress to be greater than zero

parent 14eb160e
......@@ -42,6 +42,9 @@ class Progress(object):
if a > b:
a = b
if a < 0:
a = 0
if b <= 0:
raise ValueError('fraction a/b = {0}/{1} must have b > 0'.format(a, b))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment