From b27f2dda1a4dc3772857286c95bbfbc2dffd0760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guti=C3=A9rrez=20Hermosillo=20Muriedas=2C=20Juan=20Pedro?= Date: Wed, 31 Jul 2024 15:29:56 +0200 Subject: [PATCH] fix: reading of price unit for text-report points to the correct data node --- perun/io/text_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perun/io/text_report.py b/perun/io/text_report.py index adab1f3..b24dfba 100644 --- a/perun/io/text_report.py +++ b/perun/io/text_report.py @@ -134,7 +134,7 @@ def textReport(dataNode: DataNode, mr_id: str) -> str: e_kWh = total_energy / (3600 * 1e3) kgCO2 = dataNode.metrics[MetricType.CO2].sum # type: ignore money = dataNode.metrics[MetricType.MONEY].sum # type: ignore - money_icon = dataNode.metadata["post-processing.price_unit"] + money_icon = mr_node.metadata["post-processing.price_unit"] app_summary_str = f"Application Summary\n\nThe application has been run {n_runs} times. Throughout its runtime, it has used {e_kWh:.3f} kWh, released a total of {kgCO2:.3f} kgCO2e into the atmosphere, and you paid {money:.2f} {money_icon} in electricity for it." else: