From f9d37f40291f2806eabce36d1720bc634fb0c4c5 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 18 Jun 2015 07:53:28 +0200 Subject: [PATCH] Script execution --- .../tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py b/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py index 02d04ae..bfeb7c6 100644 --- a/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py +++ b/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py @@ -125,14 +125,14 @@ for setpoint1 in range(0, loopTimes): start = readback2 - direction direction = -1.0 print 'End of span, changing direction to ' + str(direction) - break + if endL>0.0 or ( direction < 0 and setpoint2 <= start ): #invert direction and swap start with end of translation end = endDefault start = readback2 - direction direction = 1.0 print 'End of span, changing direction to ' + str(direction) - break + ################### beginning of E ##################