Skip to content

Commit

Permalink
update one_neuron_noise_PyNN
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshKhilawala committed Jul 4, 2022
1 parent ad3ce3b commit 0d9e67f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/nest/one_neuron_noise_PyNN.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
neuron.record("v")


# weight = [0.0012, -0.001] # nA
weight = 0.0012
weight = [[0.0012], [-0.001]]
delay = 1.0

connections = sim.Projection(
neuron, noise,
sim.AllToAllConnector(),
sim.StaticSynapse(weight=weight, delay=delay))


connections_exc = sim.Projection(noise[0:1], neuron, sim.AllToAllConnector(), receptor_type="excitatory", synapse_type=sim.StaticSynapse(weight=0.0012, delay=delay))
connections_inh = sim.Projection(noise[1:2], neuron, sim.AllToAllConnector(), receptor_type="inhibitory", synapse_type=sim.StaticSynapse(weight=-0.001, delay=delay))

sim.run(1000.0)

Expand Down

0 comments on commit 0d9e67f

Please sign in to comment.