I created a PoissonGroup consisting of 100 neurons and the firing rate of each neuron is 300Hz. This PoissonGroup was deactivated at the beginning, and then activated at 1000ms and deactivated at 2000ms again. However, after 2000ms, the PoissonGroup was not completely turned off, some of these neurons fired with an extremely high firing rate (9999 Hz).
Brian2 version: 2.4.2
group_input_test = PoissonGroup(100,300*Hz) spk_sti_test = SpikeMonitor(group_input_test, record = True) net_test = Network(group_input_test, spk_sti_test) group_input_test.active = False net_test.run(1000 * ms) group_input_test.active = True net_test.run(1000 * ms) group_input_test.active = False net_test.run(1000 * ms) plt.figure() plt.plot(spk_sti_test.t/ms, spk_sti_test.i,'|') plt.xlim([0,3000]) plt.xlabel('ms') plt.ylabel('neuron',fontsize=12)
Deactivate the PoissonGroup by setting its attribute “rates” to 0*Hz won’t cause this problem
group_input_test.rates = 0*Hz