From 22765f02a2b8f0b3d87875c2feef73a099602c06 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 9 Jun 2020 13:07:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20dinglehopper:=20Fix=20tests=20by?= =?UTF-8?q?=20making=20metrics=20a=20keyword=20argument?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/dinglehopper/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qurator/dinglehopper/cli.py b/qurator/dinglehopper/cli.py index e62d8b6..63bfd92 100644 --- a/qurator/dinglehopper/cli.py +++ b/qurator/dinglehopper/cli.py @@ -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__':