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
b0dd5194
Commit
b0dd5194
authored
May 16, 2026
by
Eric Duminil
Browse files
Trying to add EnergyGridSimulation
parent
1c5b5973
Changes
19
Hide whitespace changes
Inline
Side-by-side
tests/data/templates/05_EnergyGridSimulation.flow/00_ImportCityGml.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.citygml.steps.ImportCityGml"
id=
"ImportCityGml0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
startStep
</string>
<void
method=
"set"
>
<object
idref=
"ImportCityGml0"
/>
<boolean>
true
</boolean>
</void>
</void>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"ImportCityGml0"
/>
<string>
01_HistoricRefurbishmentsProcessor.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/01_HistoricRefurbishmentsProcessor.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.HistoricRefurbishmentsProcessorStep"
id=
"HistoricRefurbishmentsProcessorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"HistoricRefurbishmentsProcessorStep0"
/>
<string>
02_YearOfConstructionInjector.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/02_YearOfConstructionInjector.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"de.hft.stuttgart.sektorsim.quarterarchetypes.YearOfConstructionInjector"
id=
"YearOfConstructionInjector0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"YearOfConstructionInjector0"
/>
<string>
03_Preprocessing.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/03_Preprocessing.step/00_GeometricPreprocessor.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.GeometricPreprocessorStep"
id=
"GeometricPreprocessorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
startStep
</string>
<void
method=
"set"
>
<object
idref=
"GeometricPreprocessorStep0"
/>
<boolean>
true
</boolean>
</void>
</void>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"GeometricPreprocessorStep0"
/>
<string>
01_GeometricEstimator.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/03_Preprocessing.step/01_GeometricEstimator.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.GeometricEstimatorStep"
id=
"GeometricEstimatorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"GeometricEstimatorStep0"
/>
<string>
02_PhysicsPreprocessor.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/03_Preprocessing.step/02_PhysicsPreprocessor.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.PhysicsPreprocessorStep"
id=
"PhysicsPreprocessorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"PhysicsPreprocessorStep0"
/>
<string>
03_UsagePreprocessor.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/03_Preprocessing.step/03_UsagePreprocessor.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.UsagePreprocessorStep"
>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/03_Preprocessing.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.Preprocessing"
id=
"Preprocessing0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.Workflow"
method=
"getField"
>
<string>
selectedStartStepPath
</string>
<void
method=
"set"
>
<object
idref=
"Preprocessing0"
/>
<string>
00_GeometricPreprocessor.step
</string>
</void>
</void>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"Preprocessing0"
/>
<string>
04_RefurbishmentScenarioMaker.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/04_RefurbishmentScenarioMaker.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.RefurbishmentScenarioMakerStep"
id=
"RefurbishmentScenarioMakerStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"RefurbishmentScenarioMakerStep0"
/>
<string>
05_WeatherProcessor.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
<void
property=
"selectedStrategy"
>
<int>
1
</int>
</void>
<void
property=
"strategies"
>
<void
method=
"add"
>
<object
class=
"de.hft.stuttgart.simstadt.refurbishment.strategy.StrategyObjectXml"
>
<void
property=
"globalStrategy"
>
<array
class=
"double"
length=
"10"
>
<void
index=
"2"
>
<double>
GEG_RATIO_PER_YEAR
</double>
</void>
</array>
</void>
<void
property=
"horizontYear"
>
<int>
HORIZONT_YEAR
</int>
</void>
<void
property=
"name"
>
<string>
New item
</string>
</void>
<void
property=
"timeHorizont"
>
<boolean>
true
</boolean>
</void>
</object>
</void>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/05_WeatherProcessor.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.WeatherProcessorStep"
id=
"WeatherProcessorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"WeatherProcessorStep0"
/>
<string>
06_IrradianceProcessor.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/06_IrradianceProcessor.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.IrradianceProcessorStep"
id=
"IrradianceProcessorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"IrradianceProcessorStep0"
/>
<string>
07_PhotovoltaicPotential.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/07_PhotovoltaicPotential.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.PhotovoltaicPotential"
id=
"PhotovoltaicPotential0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"PhotovoltaicPotential0"
/>
<string>
08_MonthlyEnergyBalance.step
</string>
</void>
</void>
<void
property=
"calculateHourlyValues"
>
<boolean>
true
</boolean>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/08_MonthlyEnergyBalance.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflowsteps.MonthlyEnergyBalanceStep"
id=
"MonthlyEnergyBalanceStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"MonthlyEnergyBalanceStep0"
/>
<string>
09_HourlyHeatDemand.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/09_HourlyHeatDemand.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"de.hftstuttgart.simstadtworkflowsteps.energy.HourlyHeatDemand"
id=
"HourlyHeatDemand0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"HourlyHeatDemand0"
/>
<string>
10_LoadProfileGenerator.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/10_LoadProfileGenerator.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"de.hftstuttgart.simstadtworkflowsteps.energy.LoadProfileGeneratorStep"
id=
"LoadProfileGeneratorStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"LoadProfileGeneratorStep0"
/>
<string>
11_QuarterarchetypeAssignment.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/11_QuarterarchetypeAssignment.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"de.hft.stuttgart.sektorsim.quarterarchetypes.QuarterarchetypeAssignmentStep"
id=
"QuarterarchetypeAssignmentStep0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
selectedNextStepPath
</string>
<void
method=
"set"
>
<object
idref=
"QuarterarchetypeAssignmentStep0"
/>
<string>
12_EnergyGridSimulation.step
</string>
</void>
</void>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/12_EnergyGridSimulation.step/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"de.hftstuttgart.simstadtworkflowsteps.energy.EnergyGridSimulationStep"
>
<void
property=
"name"
>
<string>
Base
</string>
</void>
</object>
</java>
tests/data/templates/05_EnergyGridSimulation.flow/params.xml
0 → 100644
View file @
b0dd5194
<?xml version="1.0" encoding="UTF-8"?>
<java
version=
"17.0.14"
class=
"java.beans.XMLDecoder"
>
<object
class=
"eu.simstadt.workflows.CityGmlWorkflow"
id=
"CityGmlWorkflow0"
>
<void
class=
"de.hftstuttgart.hierarchicworkflow.Workflow"
method=
"getField"
>
<string>
selectedStartStepPath
</string>
<void
method=
"set"
>
<object
idref=
"CityGmlWorkflow0"
/>
<string>
00_ImportCityGml.step
</string>
</void>
</void>
<void
class=
"de.hftstuttgart.hierarchicworkflow.WorkflowStep"
method=
"getField"
>
<string>
startStep
</string>
<void
method=
"set"
>
<object
idref=
"CityGmlWorkflow0"
/>
<boolean>
true
</boolean>
</void>
</void>
<void
property=
"cityGmlFileNames"
>
<void
method=
"add"
>
<string>
MiniBuchwald.gml
</string>
</void>
</void>
<void
property=
"name"
>
<string>
WORKFLOW_NAME
</string>
</void>
<void
property=
"shortName"
>
<string>
EnergyGridSimulation
</string>
</void>
<void
property=
"workflowProvider"
>
<object
class=
"de.hftstuttgart.simstadtworkflows.energy.EnergyGridSimulationWorkflowProvider"
/>
</void>
</object>
</java>
tests/test_simulations.py
View file @
b0dd5194
...
...
@@ -49,7 +49,6 @@ def test_pv():
description
=
"PV – MiniBuchwald"
,
)
kpis
=
to_dict
(
results
.
kpis
)
rich
.
print
(
kpis
)
assert
"PV potential yield"
in
kpis
assert
"Roof area for PV"
in
kpis
...
...
@@ -61,7 +60,7 @@ def test_pv():
assert
kpis
[
"PV specific yield"
].
unit
==
"kWh / (kWp · a)"
assert
kpis
[
"PV specific yield"
].
value
==
pytest
.
approx
(
1100
,
abs
=
100
)
assert
kpis
[
"Roof area for PV"
].
value
>
100
assert
kpis
[
"Roof area for PV"
].
unit
==
'
m²
'
assert
kpis
[
"Roof area for PV"
].
unit
==
"
m²
"
@
pytest
.
mark
.
integration
...
...
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