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
db9f4b15
Commit
db9f4b15
authored
Sep 21, 2026
by
Eric Duminil
Browse files
Added log
parent
8adda141
Changes
3
Show whitespace changes
Inline
Side-by-side
README.md
View file @
db9f4b15
...
@@ -93,7 +93,7 @@ simstadt --install
...
@@ -93,7 +93,7 @@ simstadt --install
simstadt
--gui
simstadt
--gui
# Run a workflow from the command line
# Run a workflow from the command line
simstadt HeatDemandWithShadow path/to/city.gml
-v
simstadt HeatDemandWithShadow
.flow
path/to/city.gml
-v
# Save results to CSV or JSON
# Save results to CSV or JSON
simstadt PVWithShadow path/to/city.gml
--save
results.csv
simstadt PVWithShadow path/to/city.gml
--save
results.csv
...
@@ -102,7 +102,7 @@ simstadt PVWithShadow path/to/city.gml --save results.csv
...
@@ -102,7 +102,7 @@ simstadt PVWithShadow path/to/city.gml --save results.csv
simstadt HeatDemand path/to/city.gml
--save
results.csv
simstadt HeatDemand path/to/city.gml
--save
results.csv
# List output files
# List output files
simstadt HeatDemand path/to/city.gml
--files
simstadt HeatDemand
.flow
path/to/city.gml
--files
# Debug information
# Debug information
simstadt PV path/to/city.gml
--verbose
simstadt PV path/to/city.gml
--verbose
...
...
src/simstadt/cli.py
View file @
db9f4b15
...
@@ -111,7 +111,7 @@ def build_parser() -> argparse.ArgumentParser:
...
@@ -111,7 +111,7 @@ def build_parser() -> argparse.ArgumentParser:
parser
.
add_argument
(
parser
.
add_argument
(
"template"
,
"template"
,
nargs
=
"?"
,
nargs
=
"?"
,
help
=
"Template name (from SIMSTADT_TEMPLATE_PATH)
or
path to a .flow directory."
,
help
=
"Template name (from SIMSTADT_TEMPLATE_PATH)
,
path to a .flow directory
, or a bundled template name
."
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
"citygml"
,
nargs
=
"?"
,
type
=
Path
,
help
=
"Path to the CityGML input file."
"citygml"
,
nargs
=
"?"
,
type
=
Path
,
help
=
"Path to the CityGML input file."
...
...
src/simstadt/runner.py
View file @
db9f4b15
...
@@ -66,10 +66,12 @@ def get_template_path() -> Path:
...
@@ -66,10 +66,12 @@ def get_template_path() -> Path:
local_templates
=
Path
.
cwd
()
/
"templates"
local_templates
=
Path
.
cwd
()
/
"templates"
if
local_templates
.
exists
():
if
local_templates
.
exists
():
return
local_templates
return
local_templates
bundled
=
Path
(
__file__
).
parent
/
"templates"
bundled
_templates
=
Path
(
__file__
).
parent
/
"templates"
if
bundled
.
exists
():
if
bundled
_templates
.
exists
():
log
.
info
(
"SIMSTADT_TEMPLATE_PATH undefined, and templates/ not present. Trying bundled templates."
)
log
.
info
(
"SIMSTADT_TEMPLATE_PATH undefined, and templates/ not present. Trying bundled templates."
)
return
bundled
for
template
in
bundled_templates
.
glob
(
"*.flow"
):
log
.
debug
(
"Available template : %s"
,
template
.
name
)
return
bundled_templates
raise
ValueError
(
raise
ValueError
(
"No template path found. Set SIMSTADT_TEMPLATE_PATH or create a templates/ directory."
"No template path found. Set SIMSTADT_TEMPLATE_PATH or create a templates/ directory."
)
)
...
...
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