From 8275bdebf736b5cc051c08895eda5e04859b000a Mon Sep 17 00:00:00 2001
From: Pieter Donker <donker@astron.nl>
Date: Fri, 23 Jun 2017 09:08:36 +0000
Subject: [PATCH] Task #893: backup

---
 tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py b/tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py
index 0cf7fcfb31..a6fac9bb49 100755
--- a/tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py
+++ b/tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py
@@ -267,7 +267,7 @@ class Peripheral(BaseObject):
         """ evaluate val.
         1) trying to parse values of known parameter into the value
         2) eval the value, known imported function are also evaluated """
-
+        
         _val = str(val)
         # first replace all knowns parameter names with its assigned value
         for key1, val1 in self._parameters.items():
@@ -287,8 +287,7 @@ class Peripheral(BaseObject):
             if isinstance(result, float):
                 result = int(result)
         except NameError:
-        q
-        q    result = _val
+            result = _val
         logger.debug("  _eval(%s) returns eval(%s) = %s", str(val), _val, str(result))
         return result
 
-- 
GitLab