summaryrefslogtreecommitdiff
path: root/src/file.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.py')
-rw-r--r--src/file.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file.py b/src/file.py
index 417c77b..3c69063 100644
--- a/src/file.py
+++ b/src/file.py
@@ -1,13 +1,13 @@
import re, sys, traceback, json
import phys
-file_format_version = 4
+file_format_version = 5
def save_system(path, system):
ser = dict()
+ ser["input_intensity"] = system.input_intensity
ser["version"] = file_format_version
- ser["ignore"] = system.ignore
ser["elements"] = []
for pol in system.elements:
el = {
@@ -36,7 +36,7 @@ def open_system(path):
raise ValueError("Bad file version: expected %d, found %d" \
% (file_format_version, ser["version"]))
- system.ignore = ser["ignore"]
+ system.input_intensity = float(ser["input_intensity"])
for el in ser["elements"]:
pol = phys.Polarizer(str(el["type"]))