setting seed in a Distributed Mechanism
Posted: Sat Mar 01, 2014 1:28 pm
Hi,
I'm using a distributed mechanism with the scop_rand() function for the simulation of stochastic ion channels. I want to set the seed, otherwise I'm getting the same results every time I run the simulation from the beggining.
I have seen the use of set_seed() in the context of Point Processes and is easy to call the function as 'name.seed(seed)'. But how do I do it with a distributed mechanism? Using the suffix didn't work, at least in several ways I tried (section(0.5).seed_mech(), section.seed_mech(), etc). What is the correct way?
Do I have to declare the function as GLOBAL, RANGE, or none of them? How do I deal with the multiple 'instances' of the distributed mechanism in a multi-compartment model?
Thanks and best Regards
I'm using a distributed mechanism with the scop_rand() function for the simulation of stochastic ion channels. I want to set the seed, otherwise I'm getting the same results every time I run the simulation from the beggining.
I have seen the use of set_seed() in the context of Point Processes and is easy to call the function as 'name.seed(seed)'. But how do I do it with a distributed mechanism? Using the suffix didn't work, at least in several ways I tried (section(0.5).seed_mech(), section.seed_mech(), etc). What is the correct way?
Do I have to declare the function as GLOBAL, RANGE, or none of them? How do I deal with the multiple 'instances' of the distributed mechanism in a multi-compartment model?
Thanks and best Regards