From 77ad15eadf0254a8746731ae24769e18eb0f8adf Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Mon, 19 Oct 2015 15:38:10 +0200 Subject: [PATCH] Motor Test 3: Now it should work --- script/tests/tests.properties | 2 +- .../tests/Collimator Tests pro/Motor Test 3/Motor Test 3.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script/tests/tests.properties b/script/tests/tests.properties index f290eaa..07f4496 100644 --- a/script/tests/tests.properties +++ b/script/tests/tests.properties @@ -1,5 +1,5 @@ #TestingList for pshell: configuration properties -#Mon Oct 19 15:22:19 CEST 2015 +#Mon Oct 19 15:33:24 CEST 2015 customPanel=Kollimators showEnabledTestsOnly=true listFilter=LabTests2 diff --git a/script/tests/tests/Collimator Tests pro/Motor Test 3/Motor Test 3.py b/script/tests/tests/Collimator Tests pro/Motor Test 3/Motor Test 3.py index 7c57e2f..707c3c4 100644 --- a/script/tests/tests/Collimator Tests pro/Motor Test 3/Motor Test 3.py +++ b/script/tests/tests/Collimator Tests pro/Motor Test 3/Motor Test 3.py @@ -87,7 +87,7 @@ def startTest(testName, DEVICE, params): test.sendFeedback( ret, success) return - direction = 1.0 + direction = 1 countSteps = 0 test.log('Starting testing sequence') count = 0 @@ -142,12 +142,12 @@ def startTest(testName, DEVICE, params): #check if arrived to R1 or R2 if endH: #invert direction and swap start with end of translation - direction = -1.0 + direction = -1 test.log('Reached R2 switch, changing target to R1') break elif endL: #invert direction and swap start with end of translation - direction = 1.0 + direction = 1 test.log('Reached R1 switch, changing target to R2') break