Help with .record - Too much data!
Posted: Tue May 19, 2015 2:58 pm
I am trying to record the weight value of every synapse in my model. Currently, I use the code below, which I then write to a file. The issue with this code, however, is that it stores the weight value at every time step for every synapse, regardless of if it changes or not. This causes issues when you run a simulation with 10000 synapses for 10000 ms - you get a 30gB file of weights. Is there a way to record only when the weights actually change?
Some more information about the model: it is the Hahn & McIntyre model of the Basal Ganglia. I have added spike time dependent plasticity to each type of synapse, and would like to record the weights accordingly. Maybe the recording should be moved to the .mod file, because the weights are really only updated after a neuron spikes. Or maybe it would be best to just .record once per ms or less, but I am unser how to modify .record to achieve that functionality.
Thanks
objref weightArray[pnm.nclist.count+1]
for i=0,pnm.nclist.count{
weightArray = new Vector()
}
proc RECweights(){
weightArray[0].record(&t)
for i=1,pnm.nclist.count{
weightArray.record(&pnm.nclist.o(i-1).weight)
}
}
Some more information about the model: it is the Hahn & McIntyre model of the Basal Ganglia. I have added spike time dependent plasticity to each type of synapse, and would like to record the weights accordingly. Maybe the recording should be moved to the .mod file, because the weights are really only updated after a neuron spikes. Or maybe it would be best to just .record once per ms or less, but I am unser how to modify .record to achieve that functionality.
Thanks
objref weightArray[pnm.nclist.count+1]
for i=0,pnm.nclist.count{
weightArray = new Vector()
}
proc RECweights(){
weightArray[0].record(&t)
for i=1,pnm.nclist.count{
weightArray.record(&pnm.nclist.o(i-1).weight)
}
}