LeakageChannel#

class braincell.channel.LeakageChannel(size, name=None)#

Base class for leakage channel dynamics.

A leak conductance is voltage-independent: it has no gating variables and no state to integrate, so every lifecycle hook below is a no-op (or, for current(), an obligation for the subclass to fill in). Subclass this directly to model a passive, always-open conductance such as the resting leak of a compartment. Use an ion-specific channel template instead – HH or Markov – when the conductance depends on voltage, time, or an ion concentration.

See also

IL

Concrete leak channel with a fixed conductance and reversal potential.

Notes

root_type is HHTypedNeuron: instances are attached to a Hodgkin-Huxley-typed neuron, not to an ion. There is no equation here – current() raises NotImplementedError and must be implemented by a subclass such as IL.

compute_derivative(V)[source]#

Do nothing: a leak has no state to integrate.

This is the one lifecycle method that differs from IonChannel’s default, which raises NotImplementedError. pre_integral, post_integral, init_state, reset_state and the NotImplementedError from current are all inherited unchanged.

Parameters:

V (array-like) – The membrane potential.

root_type#

alias of HHTypedNeuron