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
17c17e9d
Commit
17c17e9d
authored
May 12, 2026
by
Eric Duminil
Browse files
Less precise results
parent
5f3e6ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/simstadt/results/energy_grid.py
View file @
17c17e9d
...
@@ -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
),
]
]
...
...
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