neat.PhysTree.addCurrent¶
-
PhysTree.
addCurrent
(*args, **kwargs)¶ Adds a channel to the morphology. At each node, the channel is stored under the attribute node.currents[channel.__class__.__name__] as a tuple (g_max, e_rev) with g_max the maximal conductance [uS/cm^2] and e_rev the reversal [mV]
- Parameters
channel_name (
IonChannel
) – The ion channelg_max_distr (float, dict or
float -> float()
) – If float, the maximal 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 ion channel density (uS/cm^2) at that distance. If it is a dict, keys are the node indices and values the ion channel densities (uS/cm^2).e_rev_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 (micron) 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