Page 1 of 1

Saving Files in Multiple Run

Posted: Fri May 04, 2012 4:06 am
by Albero
Hi,

I need to run multiple simulations in a for loop, how can i make the next output files not overwrite the previous?

Thanks

Re: Saving Files in Multiple Run

Posted: Fri May 04, 2012 11:07 am
by ted
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

Posted: Mon May 07, 2012 8:31 am
by Albero
Done.

Thanks for your help.

Re: Saving Files in Multiple Run

Posted: Fri May 11, 2012 12:03 pm
by Raj
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

Re: Saving Files in Multiple Run

Posted: Fri May 11, 2012 12:13 pm
by ted
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

Posted: Fri May 11, 2012 12:25 pm
by Raj
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.