I'm new to NetPyNE. I'm happy to be able to use an high level interface like NetPyNE.
I'm having trouble in recording NetCon's weights.
I want to use the Spike timing-dependent plasticity (STDP) synaptic mechanism and to track how the weights of individual netcons change over time.
I heard that the synaptic mechanism created using "stdp.mod" stores the initial weight in NetCon.weight[0], and the weight changed by STDP is stored in NetCon.weight[1] for each stream.
======== my code =======
# set netParams & simConfig
# ...
# exec NetPyNE & interact NEURON
sim.initialize(simConfig = simConfig, netParams = netParams)
sim.net.createPops()
sim.net.createCells()
sim.net.connectCells()
sim.net.addStims()
sim.setupRecording()
# set weight recording
w_vec_list = []
for cell in sim.net.cells:
for conn in cell.conns:
w_vec = h.Vector().record(conn['hObj']._ref_weight[1])
w_vec_list.append(w_vec)
# run
sim.runSim()
sim.gatherData()
sim.saveData()
=======================
However, I was only able to get a value of 0.0 (means no change) in w_vec after running a simulation in which a lot of pre-post synaptic cell spikes occured.
Am I doing something wrong with the way of recording the weights?
Any advice on this would be really appreciated.
Thanks!
- Kisung Shin