예제 #1
0
파일: dpc230.py 프로젝트: peteshadbolt/qy
 def handle_message(self, message):
     ''' Handle a message coming from the client '''
     if message[0] == 'tdc':
         self.handle_tdc(message)
     elif message[0] == 'kill':
         self.kill()
     elif message[0] == 'delays':
         coincidence.set_delays(message[1])
     elif message[0] == 'coincidence_window':
         coincidence.set_window(message[1])
     elif message[0] == 'integration_time':
         coincidence.set_time_cutoff(message[1])
예제 #2
0
파일: dpc230.py 프로젝트: peteshadbolt/qy
 def handle_message(self, message):
     ''' Handle a message coming from the client '''
     if message[0] == 'tdc':
         self.handle_tdc(message)
     elif message[0] == 'kill':
         self.kill()
     elif message[0] == 'delays':
         coincidence.set_delays(message[1])
     elif message[0] == 'coincidence_window':
         coincidence.set_window(message[1])
     elif message[0] == 'integration_time':
         coincidence.set_time_cutoff(message[1])
예제 #3
0
파일: dpc230.py 프로젝트: peteshadbolt/qy
 def __init__(self, pipe=None):
     ''' Constructor '''
     # Set up
     self.pipe = pipe
     self.poll = (lambda x: False) if pipe == None else pipe.poll
     self.send = (lambda x: x) if pipe == None else pipe.send
     self.recv = (lambda x: x) if pipe == None else pipe.recv
     self.dpc_post = dpc230('postprocessing')
     coincidence.set_window(qy.settings.get('dpc230.coincidence_window'))
     coincidence.set_delays(qy.settings.get('dpc230.delays'))
     coincidence.set_time_cutoff(1)
     self.listen()
예제 #4
0
파일: dpc230.py 프로젝트: peteshadbolt/qy
 def __init__(self, pipe=None):
     ''' Constructor '''
     # Set up
     self.pipe = pipe
     self.poll = (lambda x: False) if pipe == None else pipe.poll
     self.send = (lambda x: x) if pipe == None else pipe.send
     self.recv = (lambda x: x) if pipe == None else pipe.recv
     self.dpc_post = dpc230('postprocessing')
     coincidence.set_window(qy.settings.get('dpc230.coincidence_window'))
     coincidence.set_delays(qy.settings.get('dpc230.delays'))
     coincidence.set_time_cutoff(1)
     self.listen()