From 1efd4e287e8ebede81fc6ef6e9aa38c7d1477efc Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Thu, 30 Nov 2017 13:53:51 +0100 Subject: [PATCH] Script execution --- script/PolSwitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/PolSwitch.py b/script/PolSwitch.py index 2c31c9e..6a16ce9 100644 --- a/script/PolSwitch.py +++ b/script/PolSwitch.py @@ -80,7 +80,7 @@ for E in setpoints: if(H>0): scan1.append ([E, H], [readback1, readback2], [detector1, detector2, detector4, detector7, tey_norm]) - if(H<0): + elif(H<0): scan2.append ([E, H], [readback1, readback2], [detector1, detector2, detector4, detector7, tey_norm]) else: raise Exception('Wrong B field value:' + str(H))