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
837dbd02
Commit
837dbd02
authored
May 13, 2017
by
Philipp Zumstein
Browse files
Fix ocropus-errs --erroronly
parent
986e75ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
ocropus-errs
View file @
837dbd02
...
...
@@ -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
(
"err
nomiss
%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
%8
d"
%
total
)
print
(
"err
%8.3f %%"
%
(
errs
*
100.0
/
total
))
print
(
"errnomiss %8.3f %%"
%
((
errs
-
missing
)
*
100.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