neat.PhysTree.setLeakCurrent

PhysTree.setLeakCurrent(*args, **kwargs)

Set the parameters of the leak current. At each node, leak is stored under the attribute node.currents[‘L’] at a tuple (g_l, e_l) with g_l the conductance [uS/cm^2] and e_l the reversal [mV]

g_l_distr: float, dict or float -> float()

If float, the leak conductance 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 (micron) and the output the leak conductance [uS/cm^2] at that distance. If it is a dict, keys are the node indices and values the ion leak conductances [uS/cm^2].

e_l_distr: float, dict or float -> float()

If float, the reversal [mV] 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 reversal at that distance. If it is a dict, keys are the node indices and values the ion reversals.

node_arg: optional

see documentation of MorphTree._convertNodeArgToNodes(). Defaults to None