firing_threshold_from_axon

nrv.ui.firing_threshold_from_axon(axon, cath_time=0.1, amp_max=2000, amp_tol=1, verbose=True, **kwargs)[source]

Find the firing threshold from a specified axon using binary search

Parameters:
  • axon (axon class) – axon class

  • cath_time (float) – cathodic pulse width in ms

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

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

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

  • **kwargs – See below

  • Arguments (Keyword)

  • elec_id (int) – elec_id where to change stimulus

  • amp_min (float) – minimum amplitude for the binary search

  • t_sim (float) – Duration of the simulation in ms

  • amp_tol_abs (float) – Specify an absolute amplitude tolerance for the binary search in uA

  • anod_first (bool) – Set the anodic phase before the cathodic phase

  • t_inter (float) – Specify the interphase delay in ms

  • cath_an_ratio (float) – Specify the cathodic/anodic ratio

  • cath_an_ratio – Set the tolorance for dt in %

  • amp_tol_abs – Set the absolute tolerance for the binary search in uA.

Returns:

threshold – estimated firing threshold in uA

Return type:

float