def OnFeedChoice(self, evt): choice = evt.GetString() if choice == "Sine 1Hz": pipeInData = gen_sin(F=1.0, AMP=0.3) elif choice == "Sine 4Hz": pipeInData = gen_sin(F=2.0, AMP=0.3) elif choice == "Triangular": pipeInData = gen_tri() self.nerfModel.SendPipe(pipeInData)
def OnFeedChoice(self, evt): choice = evt.GetString() if choice == "Sine 1Hz": pipeInData = gen_sin(F = 1.0, AMP = 0.3) elif choice == "Sine 4Hz": pipeInData = gen_sin(F = 2.0, AMP = 0.3) elif choice == "Triangular": pipeInData = gen_tri() self.nerfModel.SendPipe(pipeInData)
def on_comboBox_activated(self, p0): """ Slot documentation goes here. """ choice = p0 if choice == "Spike Train 1Hz": # pipeInData = spike_train(firing_rate = 1) pipeInData = gen_sin(F=1.0, AMP=0.3) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 10) pipeInData = gen_sin(F=4.0, AMP=0.3) elif choice == "Spike Train 20Hz": pipeInData = gen_tri() # pipeInData = spike_train(firing_rate = 100) self.nerfModel.SendPipe(pipeInData)
def on_comboBox_activated(self, p0): """ Slot documentation goes here. """ choice = p0 if choice == "Spike Train 1Hz": # pipeInData = spike_train(firing_rate = 1) pipeInData = gen_sin(F = 1.0, AMP = 0.3) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 10) pipeInData = gen_sin(F = 4.0, AMP = 0.3) elif choice == "Spike Train 20Hz": pipeInData = gen_tri() # pipeInData = spike_train(firing_rate = 100) self.nerfModel.SendPipe(pipeInData)
def on_comboBox_activated(self, p0): """ Slot documentation goes here. """ choice = p0 if choice == "Spike Train 1Hz": # pipeInData = spike_train(firing_rate = 1) pipeInData = gen_sin(F = 1.0, AMP = 100.0, T = 2.0) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 10) # pipeInData = gen_sin(F = 4.0, AMP = 0.3) pipeInData = gen_tri(T = 2.0) elif choice == "Spike Train 20Hz": # pipeInData = gen_tri() # pipeInData = gen_ramp(T = [0.0, 0.1, 0.2, 0.8, 0.9, 2.0], L = [1.0, 1.0, 1.1, 1.1, 1.0, 1.0], FILT = False) pipeInData = gen_ramp(T = [0.0, 0.1, 1.8, 1.85, 1.9, 2.0], L = [0, 0, 15000, 15000, 0, 0], FILT = False) # pipeInData = spike_train(firing_rate = 100) self.nerfModel.SendPipe(pipeInData)
def on_comboBox_activated(self, p0): """ Slot documentation goes here. """ choice = p0 if choice == "Spike Train 1Hz": # pipeInData = spike_train(firing_rate = 1) pipeInData = gen_sin(F = 1.0, AMP = 100.0, T = 2.0) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 10) # pipeInData = gen_sin(F = 4.0, AMP = 0.3) pipeInData = gen_tri(T = 2.0) elif choice == "Spike Train 20Hz": # pipeInData = gen_tri() pipeInData = gen_ramp(T = [0.0, 0.1, 0.2, 0.8, 0.9, 2.0], L = [1.0, 1.0, 1.3, 1.3, 1.0, 1.0], FILT = False) # pipeInData = gen_ramp(T = [0.0, 0.4, 1.5, 1.55, 1.6, 2.0], L = [0, 0, 15000, 15000, 0, 0], FILT = False) # pipeInData = gen_ramp(T = [0.0, 0.2, 0.25, 1.75, 1.8, 2.0], L = [1.0, 1.0, 5000.0, 5000.0, 1.0, 1.0], FILT = False) # abrupt rise / fall # pipeInData = spike_train(firing_rate = 1000) self.xemList[0].SendPipe(pipeInData)
def on_comboBox_activated(self, p0): """ Slot documentation goes here. """ choice = p0 if choice == "Spike Train 1Hz": # pipeInData = spike_train(firing_rate = 1) pipeInData = gen_sin(F=1.0, AMP=0.6, T=2.0) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 10) # pipeInData = gen_sin(F = 4.0, AMP = 0.3) pipeInData = gen_tri(T=2.0) elif choice == "Spike Train 20Hz": # pipeInData = gen_tri() pipeInData = gen_ramp(T=[0.0, 0.1, 0.2, 0.8, 0.9, 2.0], L=[1.0, 1.0, 1.1, 1.1, 1.0, 1.0], FILT=False) # pipeInData = spike_train(firing_rate = 100) self.nerfModel.SendPipe(pipeInData)