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) pipeInData = chirping_spike_train(coeff_a = 20) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 100) # pipeInData = gen_sin(F = 4.0, AMP = 0.3) pipeInData = chirping_spike_train(coeff_a = 40) elif choice == "Spike Train 20Hz": # pipeInData = gen_tri() # pipeInData = spike_train(firing_rate = 500) pipeInData = chirping_spike_train(coeff_a =60) self.nerfModel.SendPipeInt(pipeInData) # for spike_train(), SendPipeInt, SendPipe same result.
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) pipeInData = chirping_spike_train(coeff_a=20) elif choice == "Spike Train 10Hz": # pipeInData = spike_train(firing_rate = 100) # pipeInData = gen_sin(F = 4.0, AMP = 0.3) pipeInData = chirping_spike_train(coeff_a=40) elif choice == "Spike Train 20Hz": # pipeInData = gen_tri() # pipeInData = spike_train(firing_rate = 500) pipeInData = chirping_spike_train(coeff_a=60) self.nerfModel.SendPipeInt( pipeInData ) # for spike_train(), SendPipeInt, SendPipe same result.