Closed r-harsha closed 9 years ago
Hi Harsha,
you seem to refer to a specific issue of your electronic circuits for the particular experiment you want to run. I doubt it has anything to do with IPython... Have tried pausing between loops?
import time
...
for i in range(n_times):
# your stimulation here
time.sleep(5) # pauses 5 seconds
An other way would be to set the time constants of your circuits very fast for a brief moment at the end of each run in the loop, and then put it back to their values.
Thanks for posting.
Fabio
Sorry, I overlooked the code you reported.
You do seem to have tried the sleep function. Can you report more details of what happens in that case?
You should also make sure that you are reloading all the biases of the initial conditions within each iteration. Closing and exciting IPython forces you to re-run the bias settings so that's probably why the experiment works again.
Hi Fabio,
No problem :) Nothing really changes when I introduced my sleep function even for a minute! If sleep for a while is a problem, then how could it work normally when I restart my Ipython shell in seconds?
If you look at the beginning of my loop, I do reload all my biases to default_biases which is my initial conditions and then I am applying my regular biases. But as you see, this problem is prominant only for those with small weight and really slow timeconstant!
Do you think that I missed something there?
I think I just figured out the problem. It was the timeconstant of the short term depression circuit(which I didn't mention earlier, sorry!!!), which is really slow and I need to reset them, instead of DPI timeconstant alone.
Thanks again for your support Fabio :+1:
In my experiments, I am running the simulations in a loop for a different stimuli. When I tried to run the loop for the same stimuli for n times, the charge gets buildup on the DPI capacitor, especially when my currents are small and slow. I would like to reset the cap, for my every run and I tried many possibilities within the loop(marked with #tags in my code), but nothing worked out except when I actually exit my ipython shell. So is there any better way of doing this with inbuilt functions? I attached a raster showing my simulations for the same stimuli for different runs.![newproblem](https://cloud.githubusercontent.com/assets/3582897/6151423/d4e38910-b215-11e4-8900-3c750ba1cfa6.png)
This is my code...
i=0 k=1 while i<=size(dBurst)-1: j=0 while j<=size(pBurst)-1:
Here comes the part that I tried so far