Skip to content

Commit 950f537

Browse files
committed
fix bugs in the GIF model
1 parent 33a7631 commit 950f537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/dyn/neurons/reduced_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def __init__(self, size, V_rest=-70., V_reset=-70., V_th_inf=-50., V_th_reset=-6
714714
self.I1 = bm.Variable(bm.zeros(self.num))
715715
self.I2 = bm.Variable(bm.zeros(self.num))
716716
self.V_th = bm.Variable(bm.ones(self.num) * -50.)
717-
self.V = bm.Variable(bm.zeros(self.num))
717+
self.V = bm.Variable(bm.zeros(self.num) - 70.)
718718
self.input = bm.Variable(bm.zeros(self.num))
719719
self.spike = bm.Variable(bm.zeros(self.num, dtype=bool))
720720
self.t_last_spike = bm.Variable(bm.ones(self.num) * -1e7)

0 commit comments

Comments
 (0)