So then what method would you suggest for saving results? I currently use fadvance() to step through and save the data I need for later processing in vectors, lists, etc. I also don't save all the time steps in order to reduce my the number of post-simulation computations and output file size.7. Avoid writing your own "main computational loop" (i.e. a "for" or "while"
loop that calls fadvance() to march the simulation through time)--use the
standard run system's run() to launch simulations.
Q about developing models: how to save simulation results?
Q about developing models: how to save simulation results?
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Suggestions for how to develop models
Use the Vector class's record() method, and defer writing data to file(s) until after the end of simulation execution. For documentation and examples, see the Programmer's Reference, and search the NEURON forum for "record" to find multiple posts that contain further discussion and more examples.