Hi all,
I'm fairly new to NetPyne, and I'm attempting to stimulate a group of cells with a time dependent current.
Specifically, I'm trying to stimulate with a sin wave: (A*np.sin(2*np.pi*hz*t))
netParams.stimSourceParams['bkgIClamp1'] = {
'type': 'IClamp',
'del': 0,
'dur': time,
'amp': (A*np.sin(2*np.pi*hz))
}
netParams.stimTargetParams['bkg->mn'] = {
'source': 'bkgIClamp1',
'sec': 'soma',
'loc': 0.5,
'conds': {'x': [0, 5e3],'y': [0, 1.5e3],'z': [0, 12e3]}, # This stimulates the dorsal motor and ass.
'weight': 1,
'delay': 0.5,
'synMech': 'ACh'
}
Where the sin wave amplitude and frequency can be modulated when running the script - in this example A is set to 1, and hz is set to 8. For reference it is running for 100 ms (time = 100).
Its a bit unclear to me how to pass this in so that it is time-dependent, currently, my code is just calculating the numerical value of this function and injecting a constant current.
Thank you in advance!