From a36d815e5412865b59e686fd60e8fac6714654a5 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Tue, 14 May 2019 10:26:59 +0200 Subject: [PATCH] Script execution --- script/templates/EnergyScan.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/script/templates/EnergyScan.py b/script/templates/EnergyScan.py index acd026c..2cb0025 100644 --- a/script/templates/EnergyScan.py +++ b/script/templates/EnergyScan.py @@ -75,11 +75,10 @@ newest = getNewestFile() #print "newest = ",newest -#Pre-actions -if NO_BEAM_CHECK == False: - if not has_beam(): - print "Maintenence mode: end of scan" - sys.exit() +#Checking the beam +if not has_beam(): + print "Maintenence mode: end of scan" + sys.exit() if MODE is not None: