Adjusting Exp2Syn() weight after restoration by SaveState()
Posted: Wed Feb 24, 2016 3:47 am
I am trying to repeat simulation only after specific time keeping same state before that time. When I run simulation from 0 s to 10 s and I should repeat many times this period, I would like to repeat only from 5 s to 10 s. In other words, I would like to save time to repeat from 0 s to 5 s. I simulated conductances using Exp2Syn(). There are many activated conductances at 5 s. While keeping all the conductances activated before the time point of 5 s, I would like see voltage by adding or removing conductances activated after 5 s. In order to do it, I used SaveState(). I saved state at 5 s by “stateh.save()” at t = 5000. After finishing one simulation, I restored state saved in “stateh” by “stateh.restore()” and run simulation from restored time and voltage. I could reproduce exactly same voltage response from 5 s to 1 s as I saw at the first simulation. However the problem I faced was that I could not change the weight of Exp2Syn after 5 s. Only I can reproduce the voltage and conductance as exactly same as I saw at the first simulation. I would like to keep the state before 5 s and change conductances after 5 s as I want. What is the problem in my case?
Even though I inserted new Exp2Syn() into the cell after restoration from “stateh”, this new Exp2Syn() did not work et all. If I use SaveState(), the only thing I can is reproducing exactly same full trace and I cannot change, remove, and add conductance using the restored state?
...
stateh = new SaveState()
...
if (t==5000) stateh.save()
...
after finishing whole simulation
...
stateh.restore()
...
I just run from t=5000 and voltage at this time
...
Please give me advice. Thank you!!
Even though I inserted new Exp2Syn() into the cell after restoration from “stateh”, this new Exp2Syn() did not work et all. If I use SaveState(), the only thing I can is reproducing exactly same full trace and I cannot change, remove, and add conductance using the restored state?
...
stateh = new SaveState()
...
if (t==5000) stateh.save()
...
after finishing whole simulation
...
stateh.restore()
...
I just run from t=5000 and voltage at this time
...
Please give me advice. Thank you!!