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 <[email protected]>
  • Loading branch information
tautschnig and karkhaz authored Mar 18, 2024
1 parent cd1dd67 commit b7e0317
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 @@ -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()},
Expand Down

0 comments on commit b7e0317

Please sign in to comment.