Skip to content

Commit f0ed882

Browse files
committed
added RS2018 tests
1 parent a2d8e79 commit f0ed882

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.test.2018.mep

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
system: Testing activity of some neurons
2+
3+
experiments:
4+
Test:
5+
expected:
6+
spike times: [0.25, 12.49, 25.57, 38.61, 51.69]

.test.2018.omt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Framework for running automated tests on Open Source Brain
2+
# See https://github.com/OpenSourceBrain/osb-model-validation for more details
3+
4+
target: test2018.py
5+
engine: Brian2 # This installs Brian2, but all we really need is a Python environment to run the script in
6+
mep: .test.2018.mep
7+
experiments:
8+
Test:
9+
observables:
10+
spike times:
11+
file:
12+
path: exampleRunRS18/act.dat
13+
columns: [0, 4]
14+
scaling: [1, 1]
15+
spike detection:
16+
method: threshold
17+
threshold: 2
18+
tolerance: 0

test_all.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,23 @@ rm -rf test_output/*.dat
1515

1616
make
1717

18+
cd RoyalSociety2018
19+
make clean
20+
make
21+
cd ..
22+
1823
ruff format *.py */*.py
1924
ruff check *.py */*.py
2025

2126
if [ "$quick_test" == 0 ]; then
2227

2328
rm -rf exampleRun
2429
rm -rf exampleRun_nml
30+
rm -rf exampleRunRS18
2531

2632
omv test -V .test.example.omt
27-
33+
omv test -V .test.2018.omt
34+
2835
cd neuromlLocal
2936
./regenerate.sh # regenerated NML & runs omv all -V
3037
cd ..

0 commit comments

Comments
 (0)