Skip to content

Commit 3f8957b

Browse files
committed
Fix to set critical points in integration: start and end of current pulse
1 parent 74b183b commit 3f8957b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tutorial/Source/HodgkinHuxley.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def simulate(self, init_values=[-64.99584, 0.05296, 0.59590, 0.31773]):
246246
"""
247247

248248
# init_values are the steady state values for v,m,h,n at zero current injection
249-
X = odeint(self.dALLdt, init_values, self.t, args=(self,))
249+
X = odeint(self.dALLdt, init_values, self.t, args=(self,), tcrit=[self.I_inj_delay, self.I_inj_duration + self.I_inj_delay])
250250
V = X[:,0]
251251
m = X[:,1]
252252
h = X[:,2]

0 commit comments

Comments
 (0)