From 56362b0afb7e51f8501f6b0962e82e8f344f5129 Mon Sep 17 00:00:00 2001 From: Harsh Khilawala Date: Mon, 10 Jun 2024 13:57:31 -0400 Subject: [PATCH] fix typo for number of spikes --- examples/iaf_neuron_with_current_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/iaf_neuron_with_current_generator.py b/examples/iaf_neuron_with_current_generator.py index b7f2945e..d1721309 100644 --- a/examples/iaf_neuron_with_current_generator.py +++ b/examples/iaf_neuron_with_current_generator.py @@ -28,7 +28,7 @@ newsim.run(1000.0) data_v = neuron.get_data().segments[0].filter(name="v")[0] - data_spikes = neuron.get_data().segments[0].spiketrains + data_spikes = neuron.get_data().segments[0].spiketrains[0] fig_counter += 1 plt.figure(fig_counter)