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 –HHorMarkov– when the conductance depends on voltage, time, or an ion concentration.See also
ILConcrete leak channel with a fixed conductance and reversal potential.
Notes
root_typeisHHTypedNeuron: instances are attached to a Hodgkin-Huxley-typed neuron, not to an ion. There is no equation here –current()raisesNotImplementedErrorand must be implemented by a subclass such asIL.- 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 raisesNotImplementedError.pre_integral,post_integral,init_state,reset_stateand theNotImplementedErrorfromcurrentare all inherited unchanged.- Parameters:
V (array-like) – The membrane potential.
- root_type#
alias of
HHTypedNeuron