From c9ddd355f7cab79d6a3f337a658f7c377e099661 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 3 Aug 2021 11:03:14 +0200 Subject: Report: latency comparison Change-Id: Ic47209e1911317b6f42a7f8257309607d3a21e04 Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resources/tools/presentation') diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index fe0eaaa22e..351250a4d2 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -17,6 +17,7 @@ import logging import csv +import math import re from collections import OrderedDict @@ -1809,7 +1810,7 @@ def table_comparison(table, input_data): ) except ZeroDivisionError: break - if delta in (None, float(u"nan"), u"nan", u"NaN"): + if delta is None or math.isnan(delta): break new_row.append({ u"mean": delta * 1e6, -- cgit 1.2.3-korg