From 58bd1e6d0753702a4db0774b8531d20ef4b2b23b Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 10 Oct 2023 15:21:31 -0700 Subject: [PATCH] Round printed result times --- neon_minerva/integration/user_utterance.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neon_minerva/integration/user_utterance.py b/neon_minerva/integration/user_utterance.py index 57e0a76..f12e486 100644 --- a/neon_minerva/integration/user_utterance.py +++ b/neon_minerva/integration/user_utterance.py @@ -93,9 +93,10 @@ def run_test(self) -> dict: LOG.error(result) formatted_results = dict() for key, values in aggregated_results.items(): - formatted_results[key] = {"average": sum(values) / len(values), - "minimum": min(values), - "maximum": max(values)} + formatted_results[key] = {"average": round(sum(values) / + len(values), 3), + "minimum": round(min(values), 3), + "maximum": round(max(values), 3)} return formatted_results def register_bus_events(self):