From 370f963e152a9288f2e29094540c44714aa78cf8 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 24 Sep 2024 11:40:59 +0100 Subject: [PATCH] refactor to AllButMeConnector --- examples/wta_example.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/wta_example.py b/examples/wta_example.py index 6375b14..e7e6eef 100644 --- a/examples/wta_example.py +++ b/examples/wta_example.py @@ -44,8 +44,8 @@ sim.Projection( stim, wta, sim.OneToOneConnector(), sim.StaticSynapse(weight=5.0)) sim.Projection( - wta, wta, sim.extra_models.WTAConnector(), sim.StaticSynapse(weight=10.0), - receptor_type="inhibitory") + wta, wta, sim.extra_models.AllButMeConnector(), + sim.StaticSynapse(weight=10.0), receptor_type="inhibitory") sim.run(10000) @@ -58,11 +58,11 @@ for spiketrain in pop_spikes: y = numpy.ones_like(spiketrain) * spiketrain.annotations["source_index"] line, = plt.plot(spiketrain, y.magnitude * 2, "r|", - label="Without WTA") + label="Without AllButMe") for spiketrain in wta_spikes: y = numpy.ones_like(spiketrain) * spiketrain.annotations["source_index"] line_2, = plt.plot(spiketrain, (y.magnitude * 2) + 1, "b|", - label="With WTA") + label="With AllButMe") plt.xlabel("Time (ms)") plt.title("Simple example") plt.legend(handles=[line, line_2], loc=9)