bluecellulab.simulation.parallel¶
Controlled simulations in parallel.
Classes
|
Multiprocessing Pool that restricts a worker to run max 1 process. |
- class bluecellulab.simulation.parallel.IsolatedProcess(processes=1)[source]¶
Multiprocessing Pool that restricts a worker to run max 1 process.
Use this when running isolated NEURON simulations. Running 2 NEURON simulations on a single process is to be avoided. Required global NEURON simulation parameters will automatically be passed to each worker. fork mode of multiprocessing is used to pass any other global NEURON parameters to each worker.
- Parameters:
processes (
int|None)