Skip to content

Commit

Permalink
Merge pull request #218 from tmbdev/fix-errs
Browse files Browse the repository at this point in the history
Fix ocropus-errs --erroronly
  • Loading branch information
zuphilip authored May 22, 2017
2 parents 986e75e + 837dbd0 commit dacf0fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ocropus-errs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ for fname,e,t,m in sorted(outputs):
total += t
missing += m

print("errors %8d"%errs)
print("missing %8d"%missing)
print("total %8d"%total)
print("err %8.3f %%"%(errs*100.0/total))
print("errnomiss %8.3f %%"%((errs-missing)*100.0/total))

if args.erroronly:
print(errs * 1.0 / total)
if not args.erroronly:
print("errors %8d"%errs)
print("missing %8d"%missing)
print("total %8d"%total)
print("err %8.3f %%"%(errs*100.0/total))
print("errnomiss %8.3f %%"%((errs-missing)*100.0/total))

print(errs * 1.0 / total)

0 comments on commit dacf0fc

Please sign in to comment.