neat.PhysTree.add_channel_current

PhysTree.add_channel_current(*args, **kwargs)[source]

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 channel

  • g_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.convert_node_arg_to_nodes(). Defaults to None