Skip to content

Commit

Permalink
(EXPERIMENTAL) Reverted back to using t_ prefix for variables of prin…
Browse files Browse the repository at this point in the history
…t_test_array
  • Loading branch information
aveeyan committed Feb 8, 2024
1 parent 80c6e91 commit d6aa35c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/batspp_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,15 +565,15 @@ def run_batspp(input_file, output_file):
def print_test_array(arr):
"""Print summary of test results in ARR"""
for index, item in enumerate(arr):
test_name = item['test_name']
rate = item['test_success_rate']
min_score = item['test_min_score']
count_total = item['test_count_total']
count_ok = item['test_count_ok']
count_eval_error = item['test_count_eval_error']
t_name = item['test_name']
t_rate = item['test_success_rate']
t_min_score = item['test_min_score']
t_count_total = item['test_count_total']
t_count_ok = item['test_count_ok']
t_count_eval_error = item['test_count_eval_error']
## OLD: Revised format includes test passed out of test found
# print(f"{index + 1}. {name} ({rate}%): threshold={min_score}%")
print(f"{index+1}. {test_name} ({rate}%; {count_ok}/{count_total} OK): threshold={min_score}%; {count_eval_error} evaluation errors")
print(f"{index+1}. {t_name} ({t_rate}%; {t_count_ok}/{t_count_total} OK): threshold={min_score}%; {t_count_eval_error} evaluation errors")
if not arr:
print("n/a")

Expand Down

0 comments on commit d6aa35c

Please sign in to comment.