Channel#
- class braincell.Channel(size, name=None)#
Base class for a channel that draws its current from one ion pool.
Subclasses implement
current()and, when they carry gating state,compute_derivative(); every lifecycle method receives anIonInfofor each ion named in the subclass’sroot_type.Examples
class SodiumChannel(Channel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # Additional initialization for sodium channel def current(self, V, *args): # Implement sodium current calculation pass # Implement other required methods