From 4714bc162801a2c84aa0a54fea7c2924a5e6d16c Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 4 Nov 2024 07:02:56 +0000 Subject: [PATCH] refill send buffer on new run forever --- .../test_external_devices/test_spike_run_forever_again.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spynnaker_integration_tests/test_external_devices/test_spike_run_forever_again.py b/spynnaker_integration_tests/test_external_devices/test_spike_run_forever_again.py index 027f421837..5d88e93c10 100644 --- a/spynnaker_integration_tests/test_external_devices/test_spike_run_forever_again.py +++ b/spynnaker_integration_tests/test_external_devices/test_spike_run_forever_again.py @@ -52,7 +52,11 @@ def do_run(): label="sender") pop = sim.Population( 1, sim.IF_curr_exp(), label="pop_1") - pop.record("spikes") + input_pop = sim.Population( + 1, sim.SpikeSourceArray( + spike_times=[0, 2, 4, 6, 8, 10, 12, 14, 16, 18]), + label="input") + input_pop.record("spikes") sim.Projection(ssa, pop, sim.OneToOneConnector(), sim.StaticSynapse(weight=5, delay=1)) sim.external_devices.activate_live_output_for( @@ -62,7 +66,6 @@ def do_run(): sim.external_devices.run_forever() neo = pop.get_data("spikes") spikes = count_spikes(neo) - pop.write_data("test.csv", "spikes") sim.end() print(spike_send_count, spike_receive_count, spikes)