1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-10 12:19:59 +02:00

🐛 dinglehopper: Fix tests by making metrics a keyword argument

This commit is contained in:
Gerber, Mike 2020-06-09 13:07:44 +02:00
parent 1af062e1a9
commit 22765f02a2

View file

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