Error with setting VecStim population parameters

38 views
Skip to first unread message

Katherine Doxey

unread,
Feb 8, 2024, 6:07:17 PM2/8/24
to NetPyNE Q&A forum
Hi,

I am attempting to input poisson distributed spike trains to synapses in a single cell model by creating a VecStim population. I have tried using the spikePattern property and createPoissonPattern with the spkTimes properties. With both, I get an error while running my simulation. However, the simulation completes and the error message is Error while setting  'spikePattern' param to VecStim[0] or Error while setting  'spkTimes' param to VecStim[0]. Does anyone have an idea as to what could be causing this error or what I should look into further? I would also welcome any suggestions on how to best implement poisson spike trains in NetPyNE. Thank you!

Here is my code for both methods:
# spikePattern
netParams.popParams['vecstim'] = {
'cellModel': 'VecStim',
'numCells': 1,
'spikePattern': {'type': 'poisson',
'start': 10,
'stop': -1,
'frequency': 10}
}

# createPoissonPattern
poisson_params = {'start': 0,
'stop': sim_dur,
'frequency': 10}
spkTimes = list(cell.createPoissonPattern(poisson_params, h.Random()))

netParams.popParams['vecstim'] = {
'cellModel': 'VecStim',
'numCells': 1,
'spkTimes': spkTimes
}
Reply all
Reply to author
Forward
0 new messages