neat.PhysTree.fitLeakCurrent¶
-
PhysTree.
fitLeakCurrent
(*args, **kwargs)¶ Fits the leak current to fix equilibrium potential and membrane time- scale.
!!! Should only be called after all ion channels have been added !!!
- Parameters
e_eq_target_distr (float, dict or
float -> float()
) – The target reversal potential (mV). If float, the target reversal is set to this value for all the nodes specified in node_arg. If it is a function, the input must specify the distance from the soma (um) and the output the target reversal at that distance. If it is a dict, keys are the node indices and values the target reversalstau_m_target_distr (float, dict or
float -> float()
) – The target membrane time-scale (ms). If float, the target time-scale is set to this value for all the nodes specified in node_arg. If it is a function, the input must specify the distance from the soma (um) and the output the target time-scale at that distance. If it is a dict, keys are the node indices and values the target time-scalesnode_arg – see documentation of
MorphTree._convertNodeArgToNodes()
. Defaults to None