class EEGLogger(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.symtop = Symtop() def run(self): while True: self.symtop.geteeg()
class EEGlogger(threading.Thread): def __init__(self, t_name): threading.Thread.__init__(self, name=t_name) self.symtop = Symtop() def run(self): global FLAG global data_eeg while FLAG: x = self.symtop.geteeg() data_eeg = np.concatenate((data_eeg, x), axis=0) print 'eeg logger thread exiting...'
def __init__(self): threading.Thread.__init__(self) self.symtop = Symtop()
def __init__(self, t_name): threading.Thread.__init__(self, name=t_name) self.symtop = Symtop()