Skip to content

Commit

Permalink
Only add evaluation stats to the report once (#86)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Fowers <[email protected]>
  • Loading branch information
jeremyfowers authored Jan 10, 2024
1 parent 8204801 commit b44bbfa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/turnkeyml/cli/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ def summary_spreadsheets(args) -> None:
if header not in column_headers:
column_headers.append(header)

# Add each build to the report
for evaluation_stats in all_evaluation_stats:
# Start with a dictionary where all of the values are "-". If a build
# has a value for each key we will fill it in, and otherwise the "-"
# will indicate that no value was available
result = {k: "-" for k in column_headers}
# Add each build to the report
for evaluation_stats in all_evaluation_stats:
# Start with a dictionary where all of the values are "-". If a build
# has a value for each key we will fill it in, and otherwise the "-"
# will indicate that no value was available
result = {k: "-" for k in column_headers}

for key in column_headers:
result[key] = _good_get(evaluation_stats, key)
for key in column_headers:
result[key] = _good_get(evaluation_stats, key)

report.append(result)
report.append(result)

# Populate results spreadsheet
with open(report_path, "w", newline="", encoding="utf8") as spreadsheet:
Expand Down

0 comments on commit b44bbfa

Please sign in to comment.