blocking_threshold_point_source

nrv.ui.blocking_threshold_point_source(diameter, L, dist_elec, block_freq, model='MRG', amp_max=2000, amp_tol=1, dt=0.005, Nseg_per_sec=2, verbose=True, **kwargs)[source]

Find the blocking 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

  • block_freq (float) – Blocking frequency in kHz

  • 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) – time discretization in ms

  • Nseg_per_sec (int) – Number of segment per section (myelinated axons) Number of segment per mm of length (unmyelinated axons)

  • 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

    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

    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 threshold in uA

Return type:

float