Commit 17c17e9d authored by Eric Duminil's avatar Eric Duminil
Browse files

Less precise results

parent 5f3e6ac9
...@@ -56,11 +56,11 @@ class EnergyGridResults(SimStadtResults): ...@@ -56,11 +56,11 @@ class EnergyGridResults(SimStadtResults):
KPI("Number of inhabitants", df.attrs["number_of_people"], precision=0), KPI("Number of inhabitants", df.attrs["number_of_people"], precision=0),
KPI("Most common archetype", archetype_share, f"% ({most_common_archetype})", precision=0), KPI("Most common archetype", archetype_share, f"% ({most_common_archetype})", precision=0),
KPI("Total heated area", total_heated_area, "m²", precision=0), KPI("Total heated area", total_heated_area, "m²", precision=0),
KPI("Total electricity demand", total_elec_kwh / 1000, "MWh / a", precision=1), KPI("Total electricity demand", total_elec_kwh / 1000, "MWh / a", precision=0),
KPI("Specific electricity demand", total_elec_kwh / total_heated_area, "kWh / (m² · a)", precision=1), KPI("Specific electricity demand", total_elec_kwh / total_heated_area, "kWh / (m² · a)", precision=0),
KPI("Total heat demand", total_heat_kwh / 1000, "MWh / a", precision=1), KPI("Total heat demand", total_heat_kwh / 1000, "MWh / a", precision=0),
KPI("Specific heat demand", total_heat_kwh / total_heated_area, "kWh / (m² · a)", precision=1), KPI("Specific heat demand", total_heat_kwh / total_heated_area, "kWh / (m² · a)", precision=0),
KPI("Total PV production", df["pv_production"].sum() / 1000, "MWh / a", precision=1), KPI("Total PV production", df["pv_production"].sum() / 1000, "MWh / a", precision=0),
KPI("Average temperature", float(df["ambient_temperature"].mean()), "°C", precision=1), KPI("Average temperature", float(df["ambient_temperature"].mean()), "°C", precision=1),
] ]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment