jaxley.channels.Fire#

class Fire(name=None)[source]#

Bases: Channel

Mechanism to reset the voltage when it crosses a threshold.

When combined with a Leak channel, this can be used to implement leaky-integrate-and-fire neurons.

Note that, after the voltage is reset by this channel, other channels (or external currents), can still modify the membrane voltage within the same time step.

Parameters:

name (str | None)

channel_params = None#
channel_states = None#
current_name = None#
update_states(states, dt, v, params)[source]#

Reset the voltage when a spike occurs and log the spike

compute_current(states, v, params)[source]#

Given channel states and voltage, return the current through the channel.

Parameters:
  • states – All states of the compartment.

  • v – Voltage of the compartment in mV.

  • params – Parameters of the channel (conductances in S/cm2).

Returns:

Current in uA/cm2.

init_state(states, v, params, delta_t)[source]#

Initialize states of channel.

change_name(new_name)#

Change the channel name.

Parameters:

new_name (str) – The new name of the channel.

Returns:

Renamed channel, such that this function is chainable.

property name: str | None#

The name of the channel (by default, this is the class name).