|
|
@ -13,12 +13,12 @@ class JsonExporter(object): |
|
|
|
self._trajectories.append(trajectory) |
|
|
|
self._trajectories.append(trajectory) |
|
|
|
|
|
|
|
|
|
|
|
def out_json(self, filename): |
|
|
|
def out_json(self, filename): |
|
|
|
data = { |
|
|
|
data = [{ |
|
|
|
"dyn.str": self._dyn_str, |
|
|
|
"dyn.str": self._dyn_str, |
|
|
|
"variables": self._variables, |
|
|
|
"variables": self._variables, |
|
|
|
"dyn.cims": self._dyn_cims, |
|
|
|
"dyn.cims": self._dyn_cims, |
|
|
|
"samples": self._trajectories |
|
|
|
"samples": self._trajectories |
|
|
|
} |
|
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
path = os.getcwd() |
|
|
|
path = os.getcwd() |
|
|
|
with open(path + "/" + filename, "w") as json_file: |
|
|
|
with open(path + "/" + filename, "w") as json_file: |
|
|
|