blocking_threshold_from_axon
- nrv.ui.blocking_threshold_from_axon(axon, block_freq=10, amp_max=2000, amp_tol=1, dt=0.005, verbose=True, **kwargs)[source]
Find the blocking threshold with point source approximation using binary search.
- Parameters:
axon (axon) – axon to stimulation
block_freq (float) – Blocking frequency in kHz
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) –
- amp_minfloat
minimum amplitude for the binary search
- t_simfloat
Duration of the simulation in ms
- amp_tol_absfloat
Specify an absolute amplitude tolerance for the binary search in uA
- t_positionfloat
Positition on the test electrode. Relative position for unmyelinated axons. Node number for myelinated axons.
- t_startfloat
start of the test pulse, in ms
- t_durationfloat
duration of the test pulse, in ms
- t_amplitudefloat
Amplitude of the test pulse, in nA
- b_startfloat
start of the blocking stimulation in ms
- b_durationfloat
duration of the blocking stimulation in ms
- Returns:
threshold – estimated threshold in uA
- Return type:
float