From 41c5f69601040f00dcfcac93d89e28cafadb842d Mon Sep 17 00:00:00 2001 From: x07maop Date: Tue, 1 Mar 2016 12:13:01 +0100 Subject: [PATCH] Script execution --- script/local.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/local.py b/script/local.py index d096525..8dfbe40 100644 --- a/script/local.py +++ b/script/local.py @@ -290,11 +290,11 @@ def set_file(file_name): class pol_mode_index(Readable): def read(self): - mode = pol_mode.read - if mode = "LINEAR": return 0 - if mode = "CIRC +": return 1 - if mode = "CIRC -": return 2 - return -1; + mode = pol_mode.read() + if mode == "LINEAR": return 0.0 + if mode == "CIRC +": return 1.0 + if mode == "CIRC -": return 2.0 + return -1.0; pmi = pol_mode_index()