From cddd0dbcd6dc54d455a02e3b115153fff47ccce8 Mon Sep 17 00:00:00 2001 From: sfop Date: Wed, 6 Jul 2016 15:21:06 +0200 Subject: [PATCH] Script execution --- script/local.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/script/local.py b/script/local.py index 2eca751..d51e6b3 100755 --- a/script/local.py +++ b/script/local.py @@ -12,21 +12,12 @@ import java.awt.Color as Color LASER_SETTLING_TIME = 0.1 def laser_on(): - print "Laser On" - #caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 0) + caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 0) time.sleep(LASER_SETTLING_TIME) def laser_off(): - print "Laser Off" - #caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 1) + caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 1) time.sleep(LASER_SETTLING_TIME) - -def ccr(mag): - n = 1 - while n > 0: - sleep(0.5) - n = caget(mag + ":I-COMP") - # Switch off magnets