diff --git a/tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py b/tools/oneclick/prestudy/YAML/py_mm_lib/peripheral.py index 0cf7fcfb31707c081640e9eec58d576ee304d877..a6fac9bb4991a29da67b1e4a72c1e6952921c77d 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