Skip to content

Commit

Permalink
Use floating point literals
Browse files Browse the repository at this point in the history
Workaround for #133
  • Loading branch information
mstimberg authored May 2, 2022
1 parent 53e5f8c commit 3297fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/simple_example_HH.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
C= 1
eqs = '''
dV/dt= (m**3*h*gNa*(ENa-V)+n**4*gK*(EK-V)+gl*(El-V)+Iin)/C/ms : 1
dm/dt= ((3.5+0.1*V)/(1-exp(-3.5-0.1*V))*(1-m)-4*exp(-(V+60)/18)*m)/ms : 1
dh/dt= (0.07*exp(-V/20-3)*(1-h)-1/(exp(-3-0.1*V)+1)*h)/ms : 1
dn/dt= ((-0.5-0.01*V)/(exp(-5-0.1*V)-1)*(1-n)-0.125*exp(-(V+60)/80)*n)/ms : 1
dm/dt= ((3.5+0.1*V)/(1-exp(-3.5-0.1*V))*(1.0-m)-4.0*exp(-(V+60.0)/18.0)*m)/ms : 1
dh/dt= (0.07*exp(-V/20.0-3.0)*(1.0-h)-1.0/(exp(-3.0-0.1*V)+1.0)*h)/ms : 1
dn/dt= ((-0.5-0.01*V)/(exp(-5.0-0.1*V)-1)*(1.0-n)-0.125*exp(-(V+60.0)/80.0)*n)/ms : 1
'''
G = NeuronGroup(N, eqs, threshold='V> 0', reset='', method='exponential_euler')

Expand Down

0 comments on commit 3297fa0

Please sign in to comment.