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
d17f078f
Commit
d17f078f
authored
Sep 20, 2026
by
Eric Duminil
Browse files
PVGIS by default for heat demand and PV
parent
305038b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
d17f078f
...
@@ -49,6 +49,9 @@ COPY --chown=simstadt:simstadt pyproject.toml uv.lock README.md ./
...
@@ -49,6 +49,9 @@ COPY --chown=simstadt:simstadt pyproject.toml uv.lock README.md ./
RUN
uv
sync
--frozen
--no-install-project
RUN
uv
sync
--frozen
--no-install-project
RUN
uv pip
install
simstadt
RUN
uv pip
install
simstadt
# Lets `simstadt <template-name> <citygml>` work out of the box using the templates
# bundled with the PyPI package, without requiring users to mount/supply their own.
ENV
SIMSTADT_TEMPLATE_PATH=/opt/venv/lib/python3.11/site-packages/simstadt/templates
RUN
simstadt
--install
RUN
simstadt
--install
COPY
--chown=simstadt:simstadt tests ./tests
COPY
--chown=simstadt:simstadt tests ./tests
...
...
src/simstadt/templates/101_HeatDemand.flow/02_WeatherProcessor.step/params.xml
View file @
d17f078f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<void
property=
"weatherDataSource"
>
<void
property=
"weatherDataSource"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<string>
TMY3_HOURLY_FIL
E
</string>
<string>
PVGIS_DATABAS
E
</string>
</object>
</object>
</void>
</void>
</object>
</object>
...
...
src/simstadt/templates/103_PV.flow/02_WeatherProcessor.step/params.xml
View file @
d17f078f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<void
property=
"weatherDataSource"
>
<void
property=
"weatherDataSource"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<string>
TMY3_HOURLY_FIL
E
</string>
<string>
PVGIS_DATABAS
E
</string>
</object>
</object>
</void>
</void>
</object>
</object>
...
...
src/simstadt/templates/104_HeatDemandWithShadow.flow/03_WeatherProcessor.step/params.xml
View file @
d17f078f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<void
property=
"weatherDataSource"
>
<void
property=
"weatherDataSource"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<string>
TMY3_HOURLY_FIL
E
</string>
<string>
PVGIS_DATABAS
E
</string>
</object>
</object>
</void>
</void>
</object>
</object>
...
...
src/simstadt/templates/105_PVWithShadow.flow/03_WeatherProcessor.step/params.xml
View file @
d17f078f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<void
property=
"weatherDataSource"
>
<void
property=
"weatherDataSource"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<object
class=
"java.lang.Enum"
method=
"valueOf"
>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<class>
de.hft.stuttgart.simstadt2.weather.WeatherDataSourceType
</class>
<string>
TMY3_HOURLY_FIL
E
</string>
<string>
PVGIS_DATABAS
E
</string>
</object>
</object>
</void>
</void>
</object>
</object>
...
...
src/simstadt/workflows.py
View file @
d17f078f
...
@@ -19,7 +19,9 @@ def _set_weather_file(meteonorm_filename: str | None) -> dict[str, str]:
...
@@ -19,7 +19,9 @@ def _set_weather_file(meteonorm_filename: str | None) -> dict[str, str]:
# No meteonorm file has been specified, fall back to PVGIS
# No meteonorm file has been specified, fall back to PVGIS
return
{
"<string>TMY3_HOURLY_FILE</string>"
:
"<string>PVGIS_DATABASE</string>"
}
return
{
"<string>TMY3_HOURLY_FILE</string>"
:
"<string>PVGIS_DATABASE</string>"
}
return
{
return
{
"<string>METEONORM_FILE</string>"
:
f
"<string>
{
Path
(
meteonorm_filename
).
name
}
</string>"
"<string>METEONORM_FILE</string>"
:
f
"<string>
{
Path
(
meteonorm_filename
).
name
}
</string>"
,
# Make sure Meteonorm is actually used:
"<string>PVGIS_DATABASE</string>"
:
"<string>TMY3_HOURLY_FILE</string>"
,
}
}
...
...
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