LeakageChannel#

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

Base class for leakage channel dynamics.

compute_derivative(V)[source]#

Compute the derivative of the channel state variables.

Parameters:

V (array-like) – The membrane potential.

current(V)[source]#

Calculate the current through the leakage channel.

Parameters:
  • V (array-like) – The membrane potential.

  • Raises

  • -------

  • NotImplementedError – This method should be implemented by subclasses.

init_state(V, batch_size=None)[source]#

Initialize the state of the leakage channel.

Parameters:
  • V (array-like) – The membrane potential.

  • batch_size (int) – The batch size for initialization.

post_integral(V)[source]#

Perform any necessary operations after the integration step.

Parameters:

V (array-like) – The membrane potential.

pre_integral(V)[source]#

Perform any necessary operations before the integration step.

Parameters:

V (array-like) – The membrane potential.

reset_state(V, batch_size=None)[source]#

Reset the state of the leakage channel.

Parameters:
  • V (array-like) – The membrane potential.

  • batch_size (int) – The batch size for resetting.

root_type#

alias of HHTypedNeuron