diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2019-05-02 18:30:25 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-05-02 18:30:25 +0200 |
commit | 6db078cf4696289bb40169398ebe5f3b1f5e87bb (patch) | |
tree | 19faacba467acf04a1b257e3835b0c97c8ee42d7 /src/file.py | |
parent | d39c23895857ef9ae8080ddd125e845eaa1c8aa3 (diff) |
Transmissivity
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 |