K_Leak#
- class braincell.channel.K_Leak(size, g_max=Quantity(0.005, 'mS / cm^2'), name=None)#
Potassium leak current.
A voltage-independent, always-open potassium conductance:
\[I = g_{max} \, (E_K - V)\]Unlike
IL, the reversal potential is not a parameter of this class – it is taken from the potassium ion object this channel is attached to, soE_Kfollows whatever the ion computes (fixed, Nernst, or concentration-driven). There are no gating variables and no state to integrate:init_state(),reset_state()andcompute_derivative()are all no-ops.- Parameters:
See also
braincell.channel.ILIon-independent leak with its own fixed reversal potential parameter.
braincell.ion.PotassiumIon object supplying
E_K.
Notes
This class has no primary literature source, and that is a determination rather than an omission: the current law is textbook Ohm’s law and the
0.005 mS/cm2default is a conventional placeholder that any caller overrides. No source model was identified for it, so the class deliberately ships without aReferencessection.root_typeisPotassium, so the channel must be attached to a potassium ion; the ion, not the channel, owns the driving force.- compute_derivative(V, K)[source]#
Compute the derivative of the channel’s state variables.
This method should be implemented by subclasses to calculate how the channel’s state changes over time.
- Parameters:
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- Raises:
NotImplementedError – This method must be implemented by subclasses.
- current(V, K)[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.
- init_state(V, K, batch_size=None)[source]#
Initialize the state of the ion channel.
This method should set up the initial state of all variables for the channel.
- Parameters:
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.