diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/file.py | 3 |
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"]) |