IL#

class braincell.channel.IL(size, g_max=Quantity(0.1, 'mS / cm^2'), E=Quantity(-70., 'mV'), name=None)#

The leakage channel current.

A generic, fixed-conductance leak: g_max and E are constants set at construction and never change with voltage, time, or concentration. Use it for the passive resting leak of a compartment, or as a placeholder before an ion-specific channel is modeled.

Parameters:
  • size (int | Sequence[int] | integer | Sequence[integer]) – Shape of the simulation target this channel is attached to.

  • g_max (Array | ndarray | bool | number | bool | int | float | complex | Quantity | Callable) – Leakage conductance density. Default is 0.1 mS/cm2.

  • E (Array | ndarray | bool | number | bool | int | float | complex | Quantity | Callable) – Leak reversal potential. Default is -70.0 mV.

  • name (str | None) – Instance name. Default is None, in which case a name is auto-generated.

See also

LeakageChannel

Abstract base this class implements.

Notes

The current follows Ohm’s law with a constant driving force:

\[I = g_{max} \cdot (E - V)\]

Registered with register_channel() under the name "IL", with "leaky" as an alias.

current(V)[source]#

Calculate the current for this ion channel.

This method should be implemented by subclasses to compute the current based on the channel’s specific properties and state.

Parameters:
  • *args – Variable length argument list.

  • **kwargs – Arbitrary keyword arguments.

Raises:

NotImplementedError – This method must be implemented by subclasses.

root_type#

alias of HHTypedNeuron