Skip to content

Commit 78b6293

Browse files
authored
Merge pull request #64 from openworm/experimental
Add test on jnmlmoose
2 parents fc235ff + 96d1d26 commit 78b6293

4 files changed

Lines changed: 20 additions & 19 deletions

File tree

.github/workflows/omv-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version: [ 3.7, 3.9 ]
18-
engine: [ jNeuroML_Brian2, jNeuroML, jNeuroML_NEURON, jNeuroML_NetPyNE, jNeuroML_EDEN, jNeuroML_validate, jNeuroML_PyNN_NEURON, Brian2 ]
18+
engine: [ jNeuroML_Brian2, jNeuroML, jNeuroML_NEURON, jNeuroML_NetPyNE, jNeuroML_EDEN, jNeuroML_validate, jNeuroML_PyNN_NEURON, Brian2, jNeuroML_Moose ]
1919

2020
steps:
2121
- uses: actions/checkout@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ Tutorial/Source/*json
3838
**/.ipynb_checkpoints/
3939
/Tutorial/Source/HHCellNetwork.net.nml__flattened.xml
4040
/notebooks/Python_HH_version/hh_py_v.dat
41+
/Tutorial/Source/HHCellSingleAP.net.nml__flattened.xml

Tutorial/Source/LEMS_HH_Simulation.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- Example with Simple Hodgkin-Huxley cell specifying segment details-->
44

55
<!-- This is a file which can be read and executed by the LEMS Interpreter.
6-
It imports the LEMS definitions of the core NeuroML 2 Components,
7-
imports in "pure" NeuroML 2 and contains some LEMS elements for running
6+
It imports the LEMS definitions of the core NeuroML 2 Components,
7+
imports in "pure" NeuroML 2 and contains some LEMS elements for running
88
a simulation -->
99

1010

@@ -23,7 +23,7 @@
2323

2424

2525
<Simulation id="sim1" length="450ms" step="0.01ms" target="HHCellNetwork">
26-
26+
2727
<Display id="d1" title="Hodgkin-Huxley Neuron: V (mV)" timeScale="1ms" xmin="-20" xmax="470" ymin="-90" ymax="50">
2828
<Line id="V" quantity="hhpop[0]/v" scale="1mV" color="#000000" timeScale="1ms"/>
2929
</Display>
@@ -44,25 +44,25 @@
4444
<Line id="I_inj1" quantity="hhpop[0]/pulseGen1/i" scale="1nA" color="#ffffff" timeScale="1ms"/>
4545
<Line id="I_inj2" quantity="hhpop[0]/pulseGen2/i" scale="1nA" color="#000000" timeScale="1ms"/>
4646
</Display>
47-
47+
4848
<!-- Saved the membrane potential to file: hh_v.dat -->
4949
<OutputFile id="of0" fileName="hh_v.dat">
50-
<OutputColumn id="v" quantity="hhpop[0]/v"/>
50+
<OutputColumn id="v" quantity="hhpop[0]/v"/>
5151
</OutputFile>
52-
52+
5353
<!-- for plotting results in JupyterNotebook -->
5454
<OutputFile id="of1" fileName="hh_forJupyterNotebook.dat">
55-
<OutputColumn id="v" quantity="hhpop[0]/v"/>
56-
<OutputColumn id="m" quantity="hhpop[0]/bioPhys1/membraneProperties/naChans/naChan/m/q"/>
57-
<OutputColumn id="h" quantity="hhpop[0]/bioPhys1/membraneProperties/naChans/naChan/h/q"/>
58-
<OutputColumn id="n" quantity="hhpop[0]/bioPhys1/membraneProperties/kChans/kChan/n/q"/>
59-
<OutputColumn id="I_na" quantity="hhpop[0]/bioPhys1/membraneProperties/naChans/iDensity"/>
55+
<OutputColumn id="v" quantity="hhpop[0]/v"/>
56+
<OutputColumn id="m" quantity="hhpop[0]/bioPhys1/membraneProperties/naChans/naChan/m/q"/>
57+
<OutputColumn id="h" quantity="hhpop[0]/bioPhys1/membraneProperties/naChans/naChan/h/q"/>
58+
<OutputColumn id="n" quantity="hhpop[0]/bioPhys1/membraneProperties/kChans/kChan/n/q"/>
59+
<OutputColumn id="I_na" quantity="hhpop[0]/bioPhys1/membraneProperties/naChans/iDensity"/>
6060
<OutputColumn id="I_k" quantity="hhpop[0]/bioPhys1/membraneProperties/kChans/iDensity"/>
6161
<OutputColumn id="I_l" quantity="hhpop[0]/bioPhys1/membraneProperties/leak/iDensity"/>
62-
<OutputColumn id="I_inj1" quantity="hhpop[0]/pulseGen1/i"/>
62+
<OutputColumn id="I_inj1" quantity="hhpop[0]/pulseGen1/i"/>
6363
<OutputColumn id="I_inj2" quantity="hhpop[0]/pulseGen2/i"/>
6464
</OutputFile>
65-
65+
6666
</Simulation>
6767

6868

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Script for running automated tests on OSB using Travis-CI, see https://github.com/OpenSourceBrain/osb-model-validation
22

3-
target: ../LEMS_HH_Simulation.xml
3+
target: ../LEMS_HH_SingleAP.xml
44
engine: jNeuroML_Moose
5-
mep: .test.mep
5+
mep: .test.singleap.mep
66
experiments:
77
Current clamp:
88
observables:
99
spike times:
10-
file:
10+
file:
1111
path: ../hh_v.dat
1212
columns: [0,1]
1313
scaling: [1000, 1000]
14-
spike detection:
14+
spike detection:
1515
method: threshold
1616
threshold: 0
17-
tolerance: 0.00147105180204
17+
tolerance: 0.000750562922191561

0 commit comments

Comments
 (0)