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: