Hi,
I need to run multiple simulations in a for loop, how can i make the next output files not overwrite the previous?
Thanks
Saving Files in Multiple Run
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Saving Files in Multiple Run
Easiest is to use sprint to construct the file name string. For an example, go to http://www.neuron.yale.edu/neuron/docs and read through the tutorial on Dealing with simulations that generate a lot of data. ModelDB probably has many entries that do similar things with sprint.
Re: Saving Files in Multiple Run
Done.
Thanks for your help.
Thanks for your help.
Re: Saving Files in Multiple Run
I wrote code specially for this purpose it is available with documentation and example code at
http://senselab.med.yale.edu/modeldb/Sh ... del=114359
http://senselab.med.yale.edu/modeldb/Sh ... del=114359
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Saving Files in Multiple Run
Hi, Raj. Would that be the code in the mrc subdirectory? (MultipleRunControl.hoc and related files) I haven't tried it yet, but it seems to offer a GUI for convenient specification of protocols and even which variables to save. This looks like something that would be a welcome addition to SimToolDB https://senselab.med.yale.edu/SimToolDB/; I'll see if we can do that. Thanks for making it available!
Re: Saving Files in Multiple Run
Yes, it is in the hoc/mrc directory.
At the time I invested quite some time to get it documented and to provide working examples. Exposure at SimToolDB makes it more likely this effort pays off. It would be very welcome if it became available there.
At the time I invested quite some time to get it documented and to provide working examples. Exposure at SimToolDB makes it more likely this effort pays off. It would be very welcome if it became available there.