summaryrefslogtreecommitdiff
path: root/src/file.py
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-06-17 17:16:00 +0200
committerPaweł Redman <pawel.redman@gmail.com>2019-06-17 17:16:00 +0200
commit40ef8b821f58111c641eda6893e1885a7fd5323e (patch)
tree298845d19901a0f58892d4dd3f74671ddf28be79 /src/file.py
parent071ca9989afa0cdfa29b95b026170b7aa9651f3d (diff)
Fix file i/o
Diffstat (limited to 'src/file.py')
-rw-r--r--src/file.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file.py b/src/file.py
index 225cee2..0184135 100644
--- a/src/file.py
+++ b/src/file.py
@@ -39,7 +39,8 @@ def open_system(path):
system.input_intensity = float(ser["input_intensity"])
for el in ser["elements"]:
- pol = phys.Polarizer(str(el["type"]))
+ pol = phys.Polarizer()
+ pol.phase_retardation = str(el["phase_retardation"])
pol.name = str(el["name"])
pol.enable = bool(el["enable"])
pol.angle = float(el["angle"])