From ec736624df31f1e42b53bd3253b9bf7bab7e42fc Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Thu, 30 Nov 2017 13:59:05 +0100 Subject: [PATCH] Script execution --- script/PolSwitch.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/script/PolSwitch.py b/script/PolSwitch.py index 7389684..00ac203 100644 --- a/script/PolSwitch.py +++ b/script/PolSwitch.py @@ -80,10 +80,8 @@ for E in setpoints: if(H>0): scan1.append ([E, H], [readback1, readback2], [detector1, detector2, detector4, detector7, tey_norm]) - elif(H<0): + if(H<0): scan2.append ([E, H], [readback1, readback2], [detector1, detector2, detector4, detector7, tey_norm]) - else: - raise Exception('Wrong B field value:' + str(H)) - + scan1.end() scan2.end() \ No newline at end of file