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