jaxley.channels.Fire#
- class Fire(name=None)[source]#
Bases:
ChannelMechanism to reset the voltage when it crosses a threshold.
When combined with a
Leakchannel, 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.