forked from ModECI/MDF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_all.sh
executable file
·68 lines (50 loc) · 1.81 KB
/
test_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
set -ex
pip install .
# Note this:
# 1) runs examples to regenerate yaml/json...
# 2) tests examples with simple_scheduler
pytest -v -ra tests/interfaces/pytorch/*py
pytest -v -ra tests/*py
cd examples/MDF
## Test generating MDF models, saving json/yaml & running the models
python simple.py -run
python abcd.py -run
python arrays.py -run
python states.py -run -nogui
python abc_conditions.py -run
## Test exporting to NeuroML
python -m modeci_mdf.interfaces.neuroml.exporter Simple.json -run
python -m modeci_mdf.interfaces.neuroml.exporter ABCD.json -run
python -m modeci_mdf.interfaces.neuroml.exporter States.json -run
## Test exporting to graphs via GraphViz
python -m modeci_mdf.interfaces.graphviz.exporter Simple.json 1 -noview
mv simple_example.gv.png images/simple.png
python -m modeci_mdf.interfaces.graphviz.exporter Simple.json 3 -noview
mv simple_example.gv.png images/simple_3.png
python -m modeci_mdf.interfaces.graphviz.exporter ABCD.json 1 -noview
mv abcd_example.gv.png images/abcd.png
python -m modeci_mdf.interfaces.graphviz.exporter ABCD.json 3 -noview
mv abcd_example.gv.png images/abcd_3.png
python -m modeci_mdf.interfaces.graphviz.exporter Arrays.json 3 -noview
mv array_example.gv.png images/arrays.png
python -m modeci_mdf.interfaces.graphviz.exporter States.yaml 3 -noview
mv state_example.gv.png images/states.png
python -m modeci_mdf.interfaces.graphviz.exporter abc_conditions.yaml 3 -noview
mv abc_conditions_example.gv.png images/abc_conditions.png
## Test regenerating NeuroML
cd ../../examples/NeuroML
./regenerateAndTest.sh -nogui
## Test ONNX examples
cd ../../examples/ONNX
python simple_ab.py -run
python simple_abc.py
python simple_abcd.py
## Test ACT-R examples
cd ../../examples/ACT-R
python count.py
python addition.py
## Generate the docs
cd ../../docs
python generate.py
cd -