🐛 dinglehopper: Fix tests by making metrics a keyword argument

pull/23/head
Gerber, Mike 4 years ago
parent 1af062e1a9
commit 22765f02a2

@ -44,7 +44,7 @@ def gen_diff_report(gt_things, ocr_things, css_prefix, joiner, none, align):
'''.format(gtx, ocrx)
def process(gt, ocr, report_prefix, metrics):
def process(gt, ocr, report_prefix, *, metrics=True):
"""Check OCR result against GT.
The @click decorators change the signature of the decorated functions, so we keep this undecorated version and use
@ -110,7 +110,7 @@ def main(gt, ocr, report_prefix, metrics):
that case, use --no-metrics to disable the then meaningless metrics and also
change the color scheme from green/red to blue.
"""
process(gt, ocr, report_prefix, metrics)
process(gt, ocr, report_prefix, metrics=metrics)
if __name__ == '__main__':

Loading…
Cancel
Save