From 6db078cf4696289bb40169398ebe5f3b1f5e87bb Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 2 May 2019 18:30:25 +0200 Subject: Transmissivity --- src/file.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/file.py') 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 -- cgit