From b7e0317e745b36078347dd5ffcbcadcea9658c17 Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Mon, 18 Mar 2024 15:33:37 +0100 Subject: [PATCH] Update tools/benchcomp/benchcomp/visualizers/__init__.py Co-authored-by: Kareem Khazem --- tools/benchcomp/benchcomp/visualizers/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/benchcomp/benchcomp/visualizers/__init__.py b/tools/benchcomp/benchcomp/visualizers/__init__.py index 6c6331dc5e83..57f623edd583 100644 --- a/tools/benchcomp/benchcomp/visualizers/__init__.py +++ b/tools/benchcomp/benchcomp/visualizers/__init__.py @@ -290,9 +290,9 @@ def _compute_scaled_metric(data_for_metric, log_scaling): return None if not isinstance(variant_result, (int, float)): return None - if min_value is None or variant_result < min_value: + if variant_result < min_value: min_value = variant_result - if max_value is None or variant_result > max_value: + if variant_result > max_value: max_value = variant_result ret = { "benchmarks": {bench: {} for bench in data_for_metric.keys()},