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
07842c62
Commit
07842c62
authored
Mar 26, 2026
by
Eric Duminil
Browse files
Done
parent
196fb489
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/simstadt/runner.py
View file @
07842c62
...
...
@@ -269,6 +269,7 @@ def _resolve_project(citygml_path: Path, project_path: Path | None) -> tuple[Pat
if
not
citygml_path
.
exists
():
raise
FileNotFoundError
(
f
"
{
citygml_path
}
not found"
)
if
project_path
is
not
None
:
project_path
=
project_path
.
with_suffix
(
'.proj'
)
project_path
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
dest
=
project_path
/
citygml_path
.
name
if
not
dest
.
exists
():
...
...
@@ -294,8 +295,6 @@ def run_workflow_with_citygml(
replaces
:
dict
|
None
=
None
,
description
:
str
|
None
=
None
,
destination
:
str
|
None
=
None
,
# TODO: Accept str too?
# TODO: Add .proj if needed
project_path
:
Path
|
None
=
None
,
)
->
SimStadtResults
:
"""Copy a workflow template, inject parameters, run SimStadt, and return parsed results.
...
...
@@ -316,7 +315,7 @@ def run_workflow_with_citygml(
if
isinstance
(
template
,
str
):
template_path
=
get_template_path
()
/
template
else
:
template_path
=
Path
(
template
)
template_path
=
template
template_name
=
template_path
.
stem
if
destination
is
None
:
...
...
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