def __init__(self): super(IonLoader, self).__init__() self.curr = current_web() self.isLoading = True signal.signal(signal.SIGINT, self.exit) signal.signal(signal.SIGTERM, self.exit) atexit.register(self.closeAll)
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 numpy as np from tqdm import trange from artiq.experiment import * from save_data import save_file import matplotlib.pyplot as plt from wlm_web import wlm_web from dds2 import * from image_processing import has_ion from CurrentWebClient import current_web wm = wlm_web() wl_871 = 0.0 curr = current_web() DDS = dds_controller('COM5') def is_871_locked(lock_point=871.034636): global wl_871 wl_871 = wm.get_channel_data(7) is_locked = abs(wl_871 - lock_point) < 0.000005 return is_locked def print_info(item): print("Time:%.2f Effi:%.1f%% Count:%d" % (item[0], item[1], item[2])) print('\n')
def __init__(self, parent=None): super(Current_Ctrl, self).__init__(parent) self.curr = current_web() self.initUi() signal.signal(signal.SIGINT, self.exit) signal.signal(signal.SIGTERM, self.exit)