From f94f7c53c108d4bbb3587ca0b7cd7398eb065a07 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 23 Jun 2015 11:41:31 +0200 Subject: [PATCH] Script execution --- .../tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py b/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py index b5aab38..f0e383e 100644 --- a/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py +++ b/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py @@ -67,7 +67,7 @@ except: print "Unexpected error:", sys.exc_info()[0] ret = 'Unable to create channel - ' + traceback.format_exc() success = False - raise + raise Exception('Unable to create channel - ' + traceback.format_exc()) sys.exit() #remove limits @@ -85,7 +85,7 @@ start = startDefault #idInkr.get()+direction setpoint2 = end count = 0 for setpoint1 in range(0, loopTimes): - sleep( delayS ) # Settling time + sleep( delaySeconds ) # Settling time #RegionPositioner idInkr idInkr.put(setpoint2, timeout=None) # TODO: Set appropriate timeout readback2 = idInkr.get()