Open acerebellum opened 7 years ago
You could try something like:
import pyNN.nest as sim
vol = sim.Population(1, sim.native_cell_type("volume_transmitter")(deliver_interval=6))
pre = sim.Population(10, sim.IF_cond_exp())
post = sim.Population(5, sim.IF_cond_exp())
mod = sim.Population(1, sim.IF_cond_exp())
syn_type = sim.native_synapse_type("stdp_dopamine_synapse")(vt=int(vol[0]))
connection_mod_vol = sim.connect(mod, vol)
plastic_connections = sim.Projection(pre, post, sim.AllToAllConnector(), syn_type)
(based on http://www.nest-simulator.org/cc/volume_transmitter/). The above code runs with one warning but no errors.
I have no idea if it works as expected - please let us know if you try this and it works.
Of course, this will only run with pyNN.nest
. If there is interest in getting this to work with another simulator (e.g. NEURON, Brian2, SpiNNaker) we could add a simulator-independent API for it.
Is there an possibility to use stdp_dopamine_synapse and volume_transmitter in pyNN, or something similar to that? Thanks....