Commit 5a83309a authored by Martin Reinecke's avatar Martin Reinecke
Browse files

nicer error printing

parent 985a0bd9
...@@ -30,13 +30,12 @@ nthreads = 0 ...@@ -30,13 +30,12 @@ nthreads = 0
def update_err(err, name, value): def update_err(err, name, value):
if name not in err: if name in err and err[name] >= value:
err[name] = value return err
print("{}: {}".format(name, value)) err[name] = value
else: for (nm, v) in err.items():
if value > err[name]: print("{}: {}".format(nm, v))
err[name] = value print()
print("{}: {}".format(name, value))
return err return err
Supports Markdown
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