def setup(self): ModuleAbstract.setup(self) self.countTotal = 0 # override num_channels if our input is coming from a signal generator, which could have any number of channels if 'num_channels' in self.module_conf['inputs']['data']: self.num_channels = self.module_conf['inputs']['data']['num_channels'] self.headers = ['timestamp'] + ['channel_%s' % i for i in xrange(self.num_channels)] self.samples_per_window = 500 self.window = np.matrix(np.zeros((self.num_channels,0))) self.nextWindowSegment = np.matrix(np.zeros((self.num_channels,0))) self.timestamps = [] self.lastClassLabel = 0 self.currentClassLabel = 0 self.currentClassLabelTimepointIndex = 0 self.classLabels = [] if self.debug: print self.LOGNAME + "setup"
def setup(self): ModuleAbstract.setup(self) if self.debug: print self.LOGNAME + "setup"