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.

Sorry for the delayed response, for some reason I wasn't getting email notifications for the forum posts.

modifyStims should work for what you want to do, but please share your code and explain exactly what you want to modify and I'll check.

Also note that modify funcs only make sense if the network setup time is very large, otherwise its preferable to change the stim in the netParams.stimSourceParams directly and rerun the whole script. If you are trying to explore a set of parameter values you might want to try out the new batch sim module included in NetPyNE -- its still not properly documented but there is an example here: https://github.com/Neurosim-lab/netpyne ... /batchCell ; and I can help you set it up for your particular problem.

The error you are getting seems to be happening during the creation of one of the Netstim/Vecstim populations, in particular something related to the 'rate' parameter. Note that after calling the modifyStims() func if you want to rerun the sim, you need to call sim.simulate() and not sim.createSimulate(); otherwise you'd be creating the network from scratch again based on the original netParams. In any case neither of those calls should generate an error; if you share the full code in 100_Cell_LA.py I can try to track it down.

I tried myself the modifyStims() using the 100_Cell_LA.py provided by Brenyn and it didn't generate any errors. Note that in your case, instead of {'conds': {'label':'bg2inter_stim'} you want to specify {'conds': {'source':'bg2inter_stim'} -- 'label' refers to keys in stimTargetParams where as source refers to keys in stimSourceParams.

Also, I noticed that although no errors were being generated, the interval of those stims wasn't changing. This was due to a small bug in the code, which I have now fixed. This will be included in the next release, but please clone the development version for now if you want to use (https://github.com/Neurosim-lab/netpyne ... evelopment).