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.
The basics of how to develop, test, and use models.
2 posts • Page 1 of 1
- Site Admin
- Posts: 5819
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
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.