Skip to content

Commit

Permalink
Fix: subthreshold dynamics equation of refractory lif
Browse files Browse the repository at this point in the history
  • Loading branch information
monkin77 committed Mar 20, 2024
1 parent 67559c2 commit 549a30c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lava/proc/lif/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,8 @@ def subthr_dynamics(self, activation_in: np.ndarray):
self.u[:] = self.u * (1 - self.du)
self.u[:] += activation_in
non_refractory = self.refractory_period_end < self.time_step
self.v[non_refractory] = (self.v[non_refractory] * (
(1 - self.dv) + self.u[non_refractory])
+ self.bias_mant[non_refractory])
self.v[non_refractory] = self.v[non_refractory] * (1 - self.dv) + (
self.u[non_refractory] + self.bias_mant[non_refractory])

def process_spikes(self, spike_vector: np.ndarray):
self.refractory_period_end[spike_vector] = (self.time_step
Expand Down

0 comments on commit 549a30c

Please sign in to comment.