hnn_core.simulate_dipole

hnn_core.simulate_dipole(net, tstop, dt=0.025, n_trials=None, record_vsoma=False, record_isoma=False, postproc=False)[source]

Simulate a dipole given the experiment parameters.

Parameters
netNetwork object

The Network object specifying how cells are connected.

tstopfloat

The simulation stop time (ms).

dtfloat

The integration time step of h.CVode (ms)

n_trialsint | None

The number of trials to simulate. If None, the ‘N_trials’ value of the params used to create net is used (must be >0)

record_vsomabool

Option to record somatic voltages from cells

record_isomabool

Option to record somatic currents from cells

postprocbool

If True, smoothing (dipole_smooth_win) and scaling (dipole_scalefctr) values are read from the parameter file, and applied to the dipole objects before returning. Note that this setting only affects the dipole waveforms, and not somatic voltages, possible extracellular recordings etc. The preferred way is to use the smooth() and scale() methods instead. Default: False.

Returns
dpls: list

List of dipole objects for each trials

Examples using hnn_core.simulate_dipole