Commit d8b6c65f authored by Eric Duminil's avatar Eric Duminil
Browse files

integer

parent 6ef9927b
...@@ -41,7 +41,7 @@ class EnergyGridResults(SimStadtResults): ...@@ -41,7 +41,7 @@ class EnergyGridResults(SimStadtResults):
total_heat_kwh = df["heat_demand"].sum() total_heat_kwh = df["heat_demand"].sum()
total_elec_kwh = df["electricity_demand"].sum() total_elec_kwh = df["electricity_demand"].sum()
return [ return [
KPI("Number of buildings", df.attrs["number_of_buildings"]), KPI("Number of buildings", df.attrs["number_of_buildings"], 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=1),
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=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