diff options
Diffstat (limited to 'src/file.py')
-rw-r--r-- | src/file.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/file.py b/src/file.py index 4285207..7c5f570 100644 --- a/src/file.py +++ b/src/file.py @@ -1,7 +1,7 @@ import re, sys, traceback, json import phys -file_format_version = 1 +file_format_version = 2 def save_system(path, system): ser = dict() @@ -14,7 +14,9 @@ def save_system(path, system): "type": pol.type, "angle": pol.angle, "delta": pol.delta, - "ref": pol.ref + "ref": pol.ref, + "t1": pol.t1, + "t2": pol.t2 } ser["elements"].append(el) @@ -39,6 +41,8 @@ def open_system(path): pol.angle = float(el["angle"]) pol.delta = float(el["delta"]) pol.ref = el["ref"] + pol.t1 = float(el["t1"]) + pol.t2 = float(el["t2"]) system.elements.append(pol) return system
\ No newline at end of file |