Skip to content

Commit

Permalink
More tests on xpp->lems
Browse files Browse the repository at this point in the history
pgleeson committed Apr 19, 2024
1 parent 2c237fd commit 615fd1d
Showing 11 changed files with 77 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -7,3 +7,5 @@
/XPP/report.txt
/XPP/fhn.model.xml
/XPP/LEMS_fhn.xml
/XPP/LEMS_*.xml
/XPP/wc.model.xml
File renamed without changes.
2 changes: 1 addition & 1 deletion XPP/.test.fhn.pynmlxpplems.omt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target: fhn.ode
engine: pyNEURON_XPP_LEMS

mep: .test.fhn.xpp.mep
mep: .test.fhn.mep
experiments:
spikes:
observables:
2 changes: 1 addition & 1 deletion XPP/.test.fhn.xpp.omt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target: fhn.ode
engine: XPP

mep: .test.fhn.xpp.mep
mep: .test.fhn.mep
experiments:
spikes:
observables:
File renamed without changes.
17 changes: 17 additions & 0 deletions XPP/.test.nca.pynmlxpplems.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
target: nca.ode
engine: pyNEURON_XPP_LEMS

mep: .test.nca.mep
experiments:
spikes:
observables:
spike times:
file:
path: output.dat
columns: [0,14]
scaling: [1000, 1]
spike detection:
method: threshold
threshold: 0
tolerance: 0.009999966556292568

2 changes: 1 addition & 1 deletion XPP/.test.nca.xpp.omt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target: nca.ode
engine: XPP

mep: .test.nca.xpp.mep
mep: .test.nca.mep
experiments:
spikes:
observables:
7 changes: 7 additions & 0 deletions XPP/.test.wc.mep
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
system: Test XPP

experiments:
spikes:
expected:
spike times: [0.80000001, 5.5999999, 9.4499998, 13.15, 16.799999, 20.4, 24.0, 27.549999, 31.15, 34.700001, 38.200001]

17 changes: 17 additions & 0 deletions XPP/.test.wc.pynmlxpplems.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
target: wc.ode
engine: pyNEURON_XPP_LEMS

mep: .test.wc.mep
experiments:
spikes:
observables:
spike times:
file:
path: output.dat
columns: [0,1]
scaling: [1000, 1]
spike detection:
method: threshold
threshold: 0.53
tolerance: 0.009505703422053232

17 changes: 17 additions & 0 deletions XPP/.test.wc.xpp.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
target: wc.ode
engine: XPP

mep: .test.wc.mep
experiments:
spikes:
observables:
spike times:
file:
path: output.dat
columns: [0,1]
scaling: [1, 1]
spike detection:
method: threshold
threshold: 0.53
tolerance: 0.00

14 changes: 14 additions & 0 deletions XPP/wc.ode
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# wilson-cowan
f(u)=1/(1+exp(-1*(u)))
par aee=10,aie=8,aei=12,aii=3,ze=.2,zi=4
par tau=1
i_e(t)=ie0+ie1*sin(w*t)
i_i(t)=ii0+ii1*sin(w*t)
par ie0=0,ie1=0,w=.25
par ii0=0,ii1=0
init u=.1,v=.05
u'=-u+f(aee*u-aie*v-ze+i_e(t))
v'=(-v+f(aei*u-aii*v-zi+i_i(t)))/tau
@ total=40
@ xp=u,yp=v,xlo=-.1,xhi=1,ylo=-.1,yhi=1
done

0 comments on commit 615fd1d

Please sign in to comment.