Closedown
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user