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
f193c7eb
Commit
f193c7eb
authored
May 08, 2026
by
Eric Duminil
Browse files
Adding empty EnergyGridResults
parent
12884ebe
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/simstadt/results/__init__.py
View file @
f193c7eb
...
...
@@ -6,6 +6,7 @@ from .load_profile import LoadProfileResults
from
.photovoltaic
import
PhotovoltaicResults
from
.providers
import
Providers
from
.solar_potential
import
SolarPotentialResults
from
.energy_grid
import
EnergyGridResults
def
create_simstadt_results
(
description
:
str
,
output_files
:
list
)
->
SimStadtResults
:
...
...
@@ -20,6 +21,7 @@ __all__ = [
"KPI"
,
"Providers"
,
"SimStadtResults"
,
"EnergyGridResults"
,
"HeatDemandResults"
,
"PhotovoltaicResults"
,
"LoadProfileResults"
,
...
...
src/simstadt/results/energy_grid.py
0 → 100644
View file @
f193c7eb
from
dataclasses
import
dataclass
from
typing
import
ClassVar
import
pandas
as
pd
from
.base
import
SimStadtResults
from
.kpi
import
KPI
from
.providers
import
Providers
@
dataclass
(
repr
=
False
)
class
EnergyGridResults
(
SimStadtResults
):
"""Results for EnergyGrid workflows.
"""
supported_providers
:
ClassVar
[
list
[
str
]]
=
[
Providers
.
ENERGY_GRID
]
csv_identifier
=
"json_only"
def
_parse_results
(
self
)
->
pd
.
DataFrame
:
_json_output
=
self
.
get_all_by_extension
(
'.json'
)
return
pd
.
DataFrame
()
@
property
def
kpis
(
self
)
->
list
[
KPI
]:
return
[
]
src/simstadt/results/providers.py
View file @
f193c7eb
...
...
@@ -16,3 +16,4 @@ class Providers(str, Enum):
)
LOAD_PROFILE
=
"de.hftstuttgart.simstadtworkflows.energy.LoadProfileProvider"
SOLAR_POTENTIAL
=
"de.hftstuttgart.simstadtworkflows.energy.SolarPotentialAnalysisWorkflowProvider"
ENERGY_GRID
=
"de.hftstuttgart.simstadtworkflows.energy.EnergyGridSimulationWorkflowProvider"
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