From 40ef8b821f58111c641eda6893e1885a7fd5323e Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 17 Jun 2019 17:16:00 +0200 Subject: Fix file i/o --- src/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"]) -- cgit