From 4ae4e296b1296b40b5d37edcef61c09592185851 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 18 Jun 2015 07:47:12 +0200 Subject: [PATCH] Script execution --- .../tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bef162f..55a8bbb 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 @@ -126,7 +126,7 @@ for setpoint1 in range(0, loopTimes): direction = -1.0 print 'End of span, changing direction to ' + str(direction) break - if endL>0.0 or readback2 >= start: + if endL>0.0 or readback2 <= start: #invert direction and swap start with end of translation end = endDefault start = readback2 - direction