Skip to content

Commit

Permalink
refactor to AllButMeConnector
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 24, 2024
1 parent af683b8 commit 370f963
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/wta_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit 370f963

Please sign in to comment.