Skip to content

Commit 1982414

Browse files
committed
More tests: Brain2 and PyNN...
1 parent d652602 commit 1982414

7 files changed

Lines changed: 56 additions & 15 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ Tutorial/Source/*json
2525
/Tutorial2/NeuroML2/*nrn.py
2626
/Tutorial2/NeuroML2/*.hoc
2727
/Tutorial/Source/LEMS_HH_Simulation_netpyne.py
28+
/Tutorial/Source/LEMS_HH_SingleAP_brian2.py

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ env:
2525
- OMV_ENGINE=jNeuroML_NEURON
2626
- OMV_ENGINE=jNeuroML_validate
2727
- OMV_ENGINE=jNeuroML_NetPyNE
28+
- OMV_ENGINE=jNeuroML_PyNN_NEURON
29+
- OMV_ENGINE=jNeuroML_Brian2
2830

2931
install:
3032
- pip install git+https://github.com/OpenSourceBrain/osb-model-validation

Tutorial/Source/LEMS_HH_SingleAP.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,6 @@
2929
<Line id="V" quantity="hhpop/0/hhcell/v" scale="1mV" color="#000000" timeScale="1ms"/>
3030
</Display>
3131

32-
<Display id="d2" title="Hodgkin-Huxley Neuron: Gating Variables" timeScale="1ms" xmin="-5" xmax="55" ymin="-0.1" ymax="1.1">
33-
<Line id="m" quantity="hhpop/0/hhcell/bioPhys1/membraneProperties/naChans/naChan/m/q" scale="1" color="#ff0000" timeScale="1ms"/>
34-
<Line id="h" quantity="hhpop/0/hhcell/bioPhys1/membraneProperties/naChans/naChan/h/q" scale="1" color="#00dd00" timeScale="1ms"/>
35-
<Line id="n" quantity="hhpop/0/hhcell/bioPhys1/membraneProperties/kChans/kChan/n/q" scale="1" color="#0000ff" timeScale="1ms"/>
36-
</Display>
37-
38-
<Display id="d3" title="Hodgkin-Huxley Neuron: Current" timeScale="1ms" xmin="-5" xmax="55" ymin="-10" ymax="10">
39-
<Line id="I_na" quantity="hhpop/0/hhcell/bioPhys1/membraneProperties/naChans/iDensity" scale="1" color="#00ffff" timeScale="1ms"/>
40-
<Line id="I_k" quantity="hhpop/0/hhcell/bioPhys1/membraneProperties/kChans/iDensity" scale="1" color="#ffff00" timeScale="1ms"/>
41-
<Line id="I_l" quantity="hhpop/0/hhcell/bioPhys1/membraneProperties/leak/iDensity" scale="1" color="#ff00ff" timeScale="1ms"/>
42-
</Display>
43-
44-
<Display id="d4" title="Hodgkin-Huxley Neuron: I_inj (nA)" timeScale="1ms" xmin="-5" xmax="55" ymin="-0.01" ymax="0.4">
45-
<Line id="I_inj" quantity="hhpop/0/hhcell/pulseGen1/i" scale="1nA" color="#ffffff" timeScale="1ms"/>
46-
</Display>
4732

4833
<OutputFile id="of0" fileName="hh_v.dat">
4934
<OutputColumn id="v" quantity="hhpop/0/hhcell/v"/>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Script for running automated tests on OSB using Travis-CI, see https://github.com/OpenSourceBrain/osb-model-validation
2+
3+
target: ../LEMS_HH_SingleAP.xml
4+
engine: jNeuroML_Brian2
5+
mep: .test.singleap.mep
6+
experiments:
7+
Current clamp:
8+
observables:
9+
spike times:
10+
file:
11+
path: ../hh_v.dat
12+
columns: [0,1]
13+
scaling: [1000, 1000]
14+
spike detection:
15+
method: threshold
16+
threshold: 0
17+
tolerance: 0.000375281461096

Tutorial/Source/test/.test.singleap.jnmlnrn.omt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@
22

33
target: ../LEMS_HH_SingleAP.xml
44
engine: jNeuroML_NEURON
5+
mep: .test.singleap.mep
6+
experiments:
7+
Current clamp:
8+
observables:
9+
spike times:
10+
file:
11+
path: ../hh_v.dat
12+
columns: [0,1]
13+
scaling: [1000, 1000]
14+
spike detection:
15+
method: threshold
16+
threshold: 0
17+
tolerance: 0.0
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Script for running automated tests on OSB using Travis-CI, see https://github.com/OpenSourceBrain/osb-model-validation
2+
3+
target: ../LEMS_HH_SingleAP.xml
4+
engine: jNeuroML_PyNN_NEURON
5+
mep: .test.singleap.mep
6+
experiments:
7+
Current clamp:
8+
observables:
9+
spike times:
10+
file:
11+
path: ../hh_v.dat
12+
columns: [0,1]
13+
scaling: [1000, 1000]
14+
spike detection:
15+
method: threshold
16+
threshold: 0
17+
tolerance: 0.0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
system: Testing a single compartment cell
2+
3+
experiments:
4+
Current clamp:
5+
expected:
6+
spike times: [7.994]

0 commit comments

Comments
 (0)