From 837dbd028b6c20a79de34104871a32675472502b Mon Sep 17 00:00:00 2001 From: Philipp Zumstein Date: Sat, 13 May 2017 23:43:27 +0200 Subject: [PATCH] Fix ocropus-errs --erroronly --- ocropus-errs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ocropus-errs b/ocropus-errs index fd3f73c0..abf6af0a 100755 --- a/ocropus-errs +++ b/ocropus-errs @@ -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)