Esempio n. 1
0
 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])
Esempio n. 2
0
 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])
Esempio n. 3
0
 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()
Esempio n. 4
0
 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()