firing_threshold_point_source

nrv.ui.firing_threshold_point_source(diameter, L, dist_elec, cath_time=0.1, model='MRG', amp_max=2000, amp_tol=1, dt=0.005, verbose=True, **kwargs)[source]

Find the firing threshold with point source approximation using binary search.

Parameters:
  • diameter (float) – axon diameter in um

  • L (float) – axon length in um

  • dist_elec (float) – y coordinate of the point source electrode in um

  • cath_time (float) – cathodic pulse width in ms

  • model (str) – Axon model

  • amp_max (float) – Maximum tested blocking amplitude for the binary search in uA

  • amp_tol (float) – Threshold tolerance in % for the binary search

  • dt (float) – Set the dt to a specific value in ms

  • verbose (bool) – set the verbosity of the search

  • **kwargs – See below

  • Arguments (Keyword) –

    materialstr

    material used to compute the extracellular field

    position_electfloat

    x location of the electrode, between 0 and 1

    z_electfloat

    z coordinate of the electrode

    amp_minfloat

    minimum amplitude for the binary search

    f_dlambdafloat

    To set the number of segment with the d_dlambda rule (Hz)

    t_simfloat

    Duration of the simulation in ms

    amp_tol_absfloat

    Specify an absolute amplitude tolerance for the binary search in uA

    anod_firstbool

    Set the anodic phase before the cathodic phase

    t_interfloat

    Specify the interphase delay in ms

    cath_an_ratio: float

    Specify the cathodic/anodic ratio

    dtfloat

    Set the dt to a specific value in ms

    cath_an_ratiofloat

    Set the tolorance for dt in %

    nsegint

    Set the number of segment for the axon

    amp_tol_absfloat

    Set the absolute tolerance for the binary search in uA.

    node_shiftfloat between -1 and 1

    Align electrode with Node of Ranvier. When Shift = 0, Electrode is aligned with node

    n_nodesinteger

    Specify the number of Node of Ranvier for myelinated models. Overwrite L when specified.

Returns:

threshold – estimated firing threshold in uA

Return type:

float