Periodically saving results during simulation

General issues of interest both for network and
individual cell parallelization.

Moderator: hines

Post Reply
Posts: 17
Joined: Wed Mar 18, 2015 11:53 am
Location: University of California, Irvine

Periodically saving results during simulation

Post by iraikov » Wed Jul 31, 2019 1:29 pm


I'd like to be able to save the spikes and and recorded intracellular traces of the neurons in a large scale network simulation every few thousand ms of simulation time, and I am wondering if anyone has implemented something similar, or has thoughts on the subject. My initial idea was to implement this as an event handler via the cvode.event mechanism, but then the compute time measurement will be affected while data is being saved, and possibly timeouts will occur. Would it be better to set tstop to the next time when data should be saved? Any suggestions are appreciated.


Site Admin
Posts: 5653
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Periodically saving results during simulation

Post by ted » Wed Jul 31, 2019 10:29 pm

Dealing with simulations that generate a lot of data ... e-lot-data
The example is in hoc, but it's easy to implement the same approach with Python.

Posts: 4
Joined: Tue Jun 25, 2019 5:55 am

Re: Periodically saving results during simulation

Post by jtg374 » Mon Dec 16, 2019 2:26 am

Hi Ted,
In the tutorial that you referred to, a process "continuerun()" was used for serial implementation. For parallel context, what would be the equivalent? using ParallelContext.psolve() ?


Post Reply