I was wondering what would be the best way to modify a stimulation source param after the simulation has already been run once (essentially to get the functionality of the modifyStims function). I noticed that modifyStims hasn't been implemented yet so is this because it is currently impossible to do this? If anyone knows a way to do this directly please let me know! I get the same error when I try to directly update a stimulation source.
Thanks.
Error:
Code: Select all
Creating network of 13 cell populations on 1 hosts...
Traceback (most recent call last):
File "100_Cell_LA.py", line 390, in <module>
evaluateRates(4, 4, netParams)
File "100_Cell_LA.py", line 67, in evaluateRates
sim.createSimulate(netParams, simConfig)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/wrappers.py", line 58, in createSimulate
(pops, cells, conns, stims, simData) = sim.create(netParams, simConfig, output=True)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/wrappers.py", line 27, in create
cells = sim.net.createCells() # instantiate network cells based on defined populations
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/network.py", line 73, in createCells
newCells = ipop.createCells() # create cells for this pop using Pop method
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/pop.py", line 56, in createCells
cells = self.createCellsFixedNum()
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/pop.py", line 126, in createCellsFixedNum
cells.append(self.cellModelClass(gid, cellTags)) # instantiate Cell object
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/cell.py", line 1197, in __init__
self.createNEURONObj() # create cell
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/cell.py", line 1210, in createNEURONObj
if 'rate' in self.params and isinstance(self.params['rate'], list) and len(self.params['rate']) == 2:
TypeError: argument of type 'function' is not iterable
>>> quit()