Skip to content

Commit

Permalink
fix: missing total run node.
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanPedroGHM committed Aug 17, 2023
1 parent 241994e commit f3f478b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions perun/io/text_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,24 @@ def textReport(dataNode: DataNode, mr_id: str) -> str:
for host_name, host_node in run_node.nodes.items():
entry = {
"Round #": run_number,
"host": host_name,
"Host": host_name,
}
for metric_type in tableMetrics:
if metric_type in host_node.metrics:
m = host_node.metrics[metric_type]
entry[metric_type.name] = value2ValueUnitStr(m.value, m.metric_md)

host_device_rows.append(entry)
entry = {
"Round #": run_number,
"Host": "All"
}
for metric_type in tableMetrics:
if metric_type in run_node.metrics:
m = run_node.metrics[metric_type]
entry[metric_type.name] = value2ValueUnitStr(m.value, m.metric_md)

host_device_rows.append(entry)

mr_table = pd.DataFrame.from_records(host_device_rows)
mr_report_str = f"RUN ID: {mr_id}\n\n" + mr_table.to_markdown(index=False) + "\n\n"
Expand Down

0 comments on commit f3f478b

Please sign in to comment.