From f3f478b340aae27bc730f76392dee58cf90632b7 Mon Sep 17 00:00:00 2001 From: JuanPedroGHM Date: Thu, 17 Aug 2023 13:27:29 +0200 Subject: [PATCH] fix: missing total run node. --- perun/io/text_report.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/perun/io/text_report.py b/perun/io/text_report.py index cb3610d..1c9d863 100644 --- a/perun/io/text_report.py +++ b/perun/io/text_report.py @@ -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"