Commit e75817a3 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: load ExpOutput from json file

parent 11b075db
...@@ -394,3 +394,7 @@ class ExpOutput(object): ...@@ -394,3 +394,7 @@ class ExpOutput(object):
def dumps(self): def dumps(self):
return json.dumps(self.__dict__) return json.dumps(self.__dict__)
def loads(self, json_s):
for k, v in json.loads(json_s).items():
self.__dict__[k] = v
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment