suny-downstate-medical-center / netpyne

A Python package to facilitate the development, parallel simulation, optimization and analysis of multiscale biological neuronal networks in NEURON.
http://www.netpyne.org
MIT License
146 stars 137 forks source link

factored out some code from runSimWithIntervalFunc() #641

Closed vvbragin closed 2 years ago

vvbragin commented 2 years ago

This is motivated by the interface between NetPyNE and The Virtual Brain tool (TVB). TVB has its own loop for numerical integration, and on each iteration of this loop NetPyNE is supposed to perform its own little piece of computations, the same as what is done in runSimWithIntervalFunc. This piece is factored out here, so that it can be separately called from TVB-owned loop, as well as prepare... and postRun methods.