Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e75817a3
Commit
e75817a3
authored
May 09, 2022
by
Antoine Kaufmann
Browse files
experiments: load ExpOutput from json file
parent
11b075db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
experiments/simbricks/experiments.py
experiments/simbricks/experiments.py
+4
-0
No files found.
experiments/simbricks/experiments.py
View file @
e75817a3
...
...
@@ -394,3 +394,7 @@ class ExpOutput(object):
def
dumps
(
self
):
return
json
.
dumps
(
self
.
__dict__
)
def
loads
(
self
,
json_s
):
for
k
,
v
in
json
.
loads
(
json_s
).
items
():
self
.
__dict__
[
k
]
=
v
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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