From 5385831df86b68e62f24357f638c8dd7e4c7c70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana?= Date: Mon, 20 Dec 2021 11:02:27 +0100 Subject: [PATCH] Show title in summary list --- src/Results.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Results.py b/src/Results.py index 8daa161..ab8637d 100644 --- a/src/Results.py +++ b/src/Results.py @@ -649,7 +649,7 @@ class StubReport(BaseReport): pass def header(self) -> None: - pass + self.title = self.data["title"] def footer(self, accuracy: float) -> None: self.accuracy = accuracy @@ -676,6 +676,7 @@ class Summary: entry = dict( score=score, model=model, + title=report.title, platform=platform, date=date, time=time, @@ -691,7 +692,8 @@ class Summary: print( "\n".join( [ - f"{x['file']:{max_length}s} {x['metric']:7.3f}" + f"{x['file']:{max_length}s} {x['metric']:7.3f} " + f"{x['title']}" for x in self.data ] )