Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
d8b6c65f
Commit
d8b6c65f
authored
May 11, 2026
by
Eric Duminil
Browse files
integer
parent
6ef9927b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/simstadt/results/energy_grid.py
View file @
d8b6c65f
...
@@ -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
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment