def __init__(self): super(IonLoader, self).__init__() self.shutter_370 = shutter(com=0) self.flip_mirror = shutter(com=1) self.shutter_399 = shutter(com=2) self.curr = current_web() self.isLoading = True signal.signal(signal.SIGINT, self.exit) signal.signal(signal.SIGTERM, self.exit) atexit.register(self.closeAll)
import matplotlib.pyplot as plt from wlm_web import wlm_web import time from image_processing import has_ion from ttl_client import shutter from current_client import current_web # from load_ion_client import reload_ion if os.name == "nt": import msvcrt wm = wlm_web() curr = current_web() shutter_370 = shutter(com=0) flip_mirror = shutter(com=1) shutter_399 = shutter(com=2) ccd_on = flip_mirror.off pmt_on = flip_mirror.on def reload_ion(): t1 = time.time() print('RELOADING...') pmt_on() time.sleep(0.3) ccd_on() time.sleep(1) # is_there_ion = has_ion()
def __init__(self, parent=None): super(ttl_panel, self).__init__(parent) self.shutter = shutter(com=1) self.initUi()