hnn_core.parallel_backends.JoblibBackend

class hnn_core.parallel_backends.JoblibBackend(n_jobs=1)

The JoblibBackend class.

Parameters
n_jobsint | None

The number of jobs to start in parallel. If None, then 1 trial will be started without parallelism

Attributes
n_jobsint

The number of jobs to start in parallel

simulate(net, n_trials, postproc=True)

Simulate the HNN model

Parameters
netNetwork object

The Network object specifying how cells are connected.

n_trialsint

Number of trials to simulate.

postprocbool

If False, no postprocessing applied to the dipole

Returns
dpl: list of Dipole

The Dipole results from each simulation trial