Skip to content

Commit 3a58749

Browse files
committed
make script testable
1 parent fb62f26 commit 3a58749

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

examples/external_devices_examples/live_examples/spike_io_interactive_demo_with_c_vis.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self):
3131

3232
use_c_visualiser = False
3333
visualiser_port = 19996
34-
use_spike_injector = True
34+
use_spike_injector = False
3535

3636
# neurons per population and the length of runtime in ms for the
3737
# simulation, as well as the expected weight each spike will contain
@@ -301,6 +301,5 @@ def inject_spike(self):
301301

302302

303303
# set up the initial script
304-
if __name__ == '__main__':
305-
multiprocessing.freeze_support()
306-
script = PyNNScript()
304+
multiprocessing.freeze_support()
305+
script = PyNNScript()

0 commit comments

Comments
 (0)