get_Simulator

biophysics_fitting.hay.default_setup.get_Simulator(fixed_params, step=False, vInit=False)

Get a set up Simulator object for the Hay et al. [2] protocol.

Given cell-specific fixed parameters, set up a simulator object for the Hay protocol, including measuring functions for bAP and BAC stimuli (no step currents)

Sets up:

  • cell_param_generator: A function generating a Cell parameters tempalate.

  • cell_param_modify_funs, which transform an input parameter vector (usually the argument of e.g. get_params() and related functions) to Cell parameters.

  • cell_generator: A function that takes the Cell parameters as an argument and returns a Cell object.

  • stim_setup_funs: Functions that take a Cell as an argument and add a NEURON stimulus to it (e.g. setup_soma_step())

  • stim_run_funs: Functions that take a Cell as an argument, simulate it, and return the simulated Cell object (e.g. init_neuron_run())

  • stim_response_measure_funs: Functions that take the cell as an argument and extract relevant data (e.g. the tVec and VList), organized per stimulus.

Parameters:
fixed_params : dict

A dictionary of fixed parameters for the cell.

step : bool

Whether to include step current measurements. These take quite long to simulate. Default: False.

vInit : bool

Whether to include vInit measurements. (not implemented yet)

Returns:

A simulator object.

Return type:

Simulator