Skip to content

Commit

Permalink
iterating over total and not failed hits
Browse files Browse the repository at this point in the history
Signed-off-by: John Long <[email protected]>
  • Loading branch information
jlong49 committed Jun 4, 2024
1 parent f5666d6 commit 27ef093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion summarize_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def compute_thermometer_on_metric(summary, metric, embed=True):
"""

output = f"{metric_name(metric)} thermometer:\n\n"
for bucket_hits in summary[metric]["failed"].items():
for bucket_hits in summary[metric]["total"].items():
bucket = bucket_hits[0] # the items() call returns (bucket, hits) pairs
failures = summary[metric]["failed"][bucket]
runs = summary[metric]["total"][bucket]
Expand Down

0 comments on commit 27ef093

Please sign in to comment.