Skip to content

Commit

Permalink
Update tools/benchcomp/benchcomp/visualizers/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kareem Khazem <karkhaz@karkhaz.com>
  • Loading branch information
tautschnig and karkhaz committed Mar 18, 2024
1 parent 6ec598d commit cd1dd67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/benchcomp/benchcomp/visualizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def _get_variant_names(results):

@staticmethod
def _compute_scaled_metric(data_for_metric, log_scaling):
min_value = None
max_value = None
min_value = math.inf
max_value = -math.inf
for bench, bench_result in data_for_metric.items():
for variant, variant_result in bench_result.items():
if isinstance(variant_result, (bool, str)):
Expand Down

0 comments on commit cd1dd67

Please sign in to comment.