how to reset kernel in netpyne

34 views
Skip to first unread message

zirui wang

unread,
Aug 14, 2023, 10:20:10 PM8/14/23
to NetPyNE Q&A forum
Hi,

Does anyone know how to reset kernel in netpyne? Cause I want to run 10 trails of one network, and direct use of "for i in range(1,11)" resulted in identical LFP PSD in every trail. 

Thanks a lot in advance!

Best,
Zirui

Eugenio Urdapilleta

unread,
Sep 12, 2023, 11:28:21 AM9/12/23
to NetPyNE Q&A forum
Hi Zirui,
 to get different results you should probably feed different trials with different seeds. For example, if you use different "stimSourceParams" for a NetStim stimulation, you can attach the dict-entry "seed" with the trial number. Also, every trial may instantiate other connectivity (probabilistic) patterns via "simConfig.seeds = {'conn': i}. If you effectively want to reset the network, after the simulation you can use "sim.clearAll()". Hope it helps,

Eugenio
Reply all
Reply to author
Forward
0 new messages