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
b7397fde
Commit
b7397fde
authored
Mar 12, 2026
by
Eric Duminil
Browse files
Relative imports
parent
3b859715
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/simstadtpy/__init__.py
View file @
b7397fde
from
simstadtpy
.results
import
(
from
.results
import
(
GreenWaterResults
,
GreenWaterResults
,
HeatDemandResults
,
HeatDemandResults
,
KPI
,
KPI
,
...
@@ -8,8 +8,8 @@ from simstadtpy.results import (
...
@@ -8,8 +8,8 @@ from simstadtpy.results import (
SolarPotentialResults
,
SolarPotentialResults
,
create_simstadt_results
,
create_simstadt_results
,
)
)
from
simstadtpy
.runner
import
run_workflow_with_citygml
from
.runner
import
run_workflow_with_citygml
from
simstadtpy
.workflows
import
greenwater_simulation
,
heatdemand_simulation
,
photovoltaic_simulation
from
.workflows
import
greenwater_simulation
,
heatdemand_simulation
,
photovoltaic_simulation
__all__
=
[
__all__
=
[
"KPI"
,
"KPI"
,
...
...
src/simstadtpy/runner.py
View file @
b7397fde
...
@@ -19,8 +19,8 @@ from xml.etree import ElementTree as et
...
@@ -19,8 +19,8 @@ from xml.etree import ElementTree as et
from
dotenv
import
load_dotenv
from
dotenv
import
load_dotenv
from
simstadtpy
.results
import
SimStadtResults
,
create_simstadt_results
from
.results
import
SimStadtResults
,
create_simstadt_results
from
simstadtpy
.utils
import
chdir
,
random_id
from
.utils
import
chdir
,
random_id
PARAMS
=
"params.xml"
PARAMS
=
"params.xml"
SIMSTADT2_GLOB
=
"SimStadt2_0.*/"
SIMSTADT2_GLOB
=
"SimStadt2_0.*/"
...
...
src/simstadtpy/workflows.py
View file @
b7397fde
...
@@ -6,9 +6,9 @@ for a specific workflow type (PV, heat demand, green water).
...
@@ -6,9 +6,9 @@ for a specific workflow type (PV, heat demand, green water).
from
pathlib
import
Path
from
pathlib
import
Path
from
simstadtpy
.results
import
SimStadtResults
from
.results
import
SimStadtResults
from
simstadtpy
.runner
import
run_workflow_with_citygml
from
.runner
import
run_workflow_with_citygml
from
simstadtpy
.utils
import
remove_random_id
,
set_random_seed
from
.utils
import
remove_random_id
,
set_random_seed
def
_set_weather_file
(
meteonorm_filename
:
str
)
->
dict
[
str
,
str
]:
def
_set_weather_file
(
meteonorm_filename
:
str
)
->
dict
[
str
,
str
]:
...
...
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