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
5459d05b
Commit
5459d05b
authored
May 11, 2026
by
Eric Duminil
Browse files
Better error message
parent
64f859f4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/simstadt/results/energy_grid.py
View file @
5459d05b
...
...
@@ -20,7 +20,7 @@ class EnergyGridResults(SimStadtResults):
def
_parse_results
(
self
)
->
pd
.
DataFrame
:
jsons
=
self
.
get_all_by_extension
(
".json"
)
assert
len
(
jsons
)
==
1
assert
len
(
jsons
)
==
1
,
f
"Exactly one JSON file should have been written:
{
len
(
jsons
)
}
were found."
json_output
=
jsons
[
0
]
with
open
(
json_output
,
encoding
=
"utf-8"
)
as
out
:
content
=
json
.
load
(
out
)
...
...
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