Hello,
I'm implementing a motoneuron model using NetPyne, and I need to apply a current profile to characterize the motor pool. However, I'm having trouble recording the traces—specifically, the current injected into the model from NetPyne.
Could someone please give me a hand? I’m not sure if I’m doing something wrong.
Below, I’m including part of my code showing how I apply the current and how I try to record the profile.
Thanks in advance!
Code to apply current
for cell in range(numCells):
stimLabel = 'Inoise'+str(cell)
netParams.stimSourceParams[stimLabel] = {
'type': 'IClamp',
'dur': sim_duration,
'del': 0,
'amp': f'abs(normal(0,{stdDevNoise}))'
}
netParams.stimTargetParams[stimLabel+'->MotorNucleus'] = {
'source': stimLabel,
'sec': 'dend',
'loc': 0.5,
'conds': {'pop': 'MotorNucleus',
'cellList': [cell]}}
Code to record the current
simConfig.recordTraces = {
'v_soma': {'sec': 'soma', 'loc': 0.5, 'var': 'v'},
'i_syn': {'sec': 'dend', 'loc': 0.5, 'var': 'i', 'synMech': 'exc'},
'I_inj': {'sec': 'dend', 'loc': 0.5, 'var': 'i_save', 'stim': 'Inoise0'}
}