hnn_core.parallel_backends.JoblibBackend

class hnn_core.parallel_backends.JoblibBackend(n_jobs=1)[source]

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

Methods

simulate(net, tstop, dt, n_trials[, postproc])

Simulate the HNN model

simulate(net, tstop, dt, n_trials, postproc=False)[source]

Simulate the HNN model

Parameters
netNetwork object

The Network object specifying how cells are connected.

n_trialsint

Number of trials to simulate.

tstopfloat

The simulation stop time (ms).

dtfloat

The integration time step of h.CVode (ms)

postprocbool

If False, no postprocessing applied to the dipole

Returns
dpl: list of Dipole

The Dipole results from each simulation trial