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
d7390027
Commit
d7390027
authored
May 10, 2026
by
Eric Duminil
Browse files
Sorting output files
parent
d158bafc
Changes
1
Show whitespace changes
Inline
Side-by-side
src/simstadt/runner.py
View file @
d7390027
...
@@ -181,7 +181,7 @@ def _get_all_files(folder: Path) -> dict[Path, float]:
...
@@ -181,7 +181,7 @@ def _get_all_files(folder: Path) -> dict[Path, float]:
def
_compare_written_files
(
repo_path
:
Path
,
before
:
dict
,
after
:
dict
)
->
list
[
Path
]:
def
_compare_written_files
(
repo_path
:
Path
,
before
:
dict
,
after
:
dict
)
->
list
[
Path
]:
modified
=
[]
modified
=
[]
log
.
info
(
"# Listing written files:"
)
log
.
info
(
"# Listing written files:"
)
for
result_file
,
mtime
in
after
.
items
():
for
result_file
,
mtime
in
sorted
(
after
.
items
()
)
:
if
mtime
>
before
.
get
(
result_file
,
0
):
if
mtime
>
before
.
get
(
result_file
,
0
):
log
.
info
(
" * '%s'"
,
result_file
.
relative_to
(
repo_path
))
log
.
info
(
" * '%s'"
,
result_file
.
relative_to
(
repo_path
))
modified
.
append
(
result_file
)
modified
.
append
(
result_file
)
...
...
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