Skip to content

Commit 4e8b675

Browse files
committed
Add eden tests
1 parent dc3bd18 commit 4e8b675

File tree

6 files changed

+63
-14
lines changed

6 files changed

+63
-14
lines changed

.github/workflows/omv-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version: [ 3.9 ]
18-
engine: [ jNeuroML, jNeuroML_NEURON, jNeuroML_validate, jNeuroML_Moose ]
18+
engine: [ jNeuroML, jNeuroML_NEURON, jNeuroML_validate, jNeuroML_Moose, jNeuroML_EDEN ]
1919

2020
steps:
2121
- uses: actions/checkout@v2
22-
22+
2323
- name: Set up Python ${{ matrix.python-version }}
2424
uses: actions/setup-python@v2
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
27+
2828
- name: Install OMV
2929
run: |
3030
pip install git+https://github.com/OpenSourceBrain/osb-model-validation
3131
pip install scipy sympy matplotlib cython pandas tables
32-
32+
3333
- name: Run OMV tests on engine ${{ matrix.engine }}
3434
run: |
3535
omv all -V --engine=${{ matrix.engine }}
36-
36+
3737
- name: OMV final version info
3838
run: |
3939
omv list -V # list installed engines

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ simulations
2424
/neuroConstruct/generatedNeuroML2/LEMS_Test_Na_ChannelML.xml
2525
/neuroConstruct/generatedNeuroML2/*.json
2626
/neuroConstruct/generatedNeuroML2/*_moose.py
27+
*.gen.c
28+
*.gen.so
29+
*_eden.py
Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
1-
# Script for running automated tests on OSB using Travis-CI, see https://github.com/borismarin/osb-model-validation
1+
# Script for running automated tests on OSB using Travis-CI, see https://github.com/borismarin/osb-model-validation
22

33
target: LEMS_MainenEtAl_PyramidalCell.xml
44
engine: jNeuroML_NEURON
55
mep: .test.big.mep
66
experiments:
7-
Current clamp:
7+
Current clamp 1:
88
observables:
99
spike times:
10-
file:
10+
file:
1111
path: NeuroMLBased_0.0.dat
1212
columns: [0,1]
1313
scaling: [1000, 1000]
14-
spike detection:
14+
spike detection:
1515
method: threshold
1616
threshold: 0
1717
tolerance: 0
18+
Current clamp 2:
19+
observables:
20+
spike times:
21+
file:
22+
path: NeuroMLBased_0.4197.dat
23+
columns: [0,1]
24+
scaling: [1000, 1000]
25+
spike detection:
26+
method: threshold
27+
threshold: -20
28+
tolerance: 0
29+
30+
Current clamp 3:
31+
observables:
32+
spike times:
33+
file:
34+
path: NeuroMLBased_0.5649.dat
35+
columns: [0,1]
36+
scaling: [1000, 1000]
37+
spike detection:
38+
method: threshold
39+
threshold: 0
40+
tolerance: 0
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
system: Testing a single compartment cell
22

33
experiments:
4-
Current clamp:
4+
Current clamp 1:
55
expected:
66
spike times: [29.11]
7+
Current clamp 2:
8+
expected:
9+
spike times: [31.3]
10+
Current clamp 3:
11+
expected:
12+
spike times: [28.71]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Script for running automated tests on OSB using Travis-CI, see https://github.com/borismarin/osb-model-validation
1+
# Script for running automated tests on OSB using Travis-CI, see https://github.com/borismarin/osb-model-validation
22

33
target: LEMS_OneComp.xml
44
engine: jNeuroML
@@ -7,11 +7,11 @@ experiments:
77
Current clamp:
88
observables:
99
spike times:
10-
file:
10+
file:
1111
path: One_ChannelML_0.dat
1212
columns: [0,1]
1313
scaling: [1000, 1000]
14-
spike detection:
14+
spike detection:
1515
method: threshold
1616
threshold: -46
17-
tolerance: 0.00081
17+
tolerance: 0.0008051529790659768
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/borismarin/osb-model-validation
2+
3+
target: LEMS_OneComp.xml
4+
engine: jNeuroML_EDEN
5+
mep: .test.mep
6+
experiments:
7+
Current clamp:
8+
observables:
9+
spike times:
10+
file:
11+
path: One_ChannelML_0.dat
12+
columns: [0,1]
13+
scaling: [1000, 1000]
14+
spike detection:
15+
method: threshold
16+
threshold: -46
17+
tolerance: 0.0021748412353196243

0 commit comments

Comments
 (0)