Closedown

This commit is contained in:
x03daop
2015-11-03 09:41:59 +01:00
parent 0e0037e298
commit 7a5a8d1a46

View File

@@ -835,6 +835,7 @@ class ScanGuard(object):
else:
logging.warning("beam down")
self.pause()
time.sleep(0.1)
def check_beam(self):
beam_ok = self.beam_ok
@@ -930,7 +931,7 @@ def operate():
import argparse
if __name__ == '__main__':
if True: #__name__ == '__main__':
parser = argparse.ArgumentParser(
description="Pause the measurements (scan records, Scienta detector) for beam loss")
parser.add_argument("-o", "--ring-current-lo", type=float, default=390, dest="riculo",
@@ -947,3 +948,4 @@ if __name__ == '__main__':
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"])
args = parser.parse_args()
main(args)