Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Wick
ocropy
Commits
dacf0fc8
Commit
dacf0fc8
authored
May 22, 2017
by
Philipp Zumstein
Committed by
GitHub
May 22, 2017
Browse files
Merge pull request #218 from tmbdev/fix-errs
Fix ocropus-errs --erroronly
parents
986e75ea
837dbd02
Changes
1
Hide whitespace changes
Inline
Side-by-side
ocropus-errs
View file @
dacf0fc8
...
@@ -52,11 +52,11 @@ for fname,e,t,m in sorted(outputs):
...
@@ -52,11 +52,11 @@ for fname,e,t,m in sorted(outputs):
total
+=
t
total
+=
t
missing
+=
m
missing
+=
m
print
(
"errors %8d"
%
errs
)
if
not
args
.
erroronly
:
print
(
"
missing
%8d"
%
missing
)
print
(
"
errors
%8d"
%
errs
)
print
(
"
total
%8d"
%
total
)
print
(
"
missing
%8d"
%
missing
)
print
(
"
err
%8
.3f %%"
%
(
errs
*
100.0
/
total
)
)
print
(
"
total
%8
d"
%
total
)
print
(
"err
nomiss
%8.3f %%"
%
(
(
errs
-
missing
)
*
100.0
/
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
)
print
(
errs
*
1.0
/
total
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment