-
Notifications
You must be signed in to change notification settings - Fork 2
/
regenerateAndTest.sh
executable file
·98 lines (59 loc) · 1.68 KB
/
regenerateAndTest.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash
set -ex
################ Regenerate NetPyNE from NeuroML 2
cd NeuroML2
pynml LEMS_2007One.xml -netpyne
cp RS*.mod *_netpyne.py NET_2007One.net.nml ../NetPyNE
pynml LEMS_GJ.xml -netpyne
cp LEMS_GJ_netpyne.py pulseGen2.mod pulseGen1.mod gj1.mod iaf.mod GJ.nml ../NetPyNE/GapJunctions
cd TwoCells
rm -f *mod
pynml LEMS_TwoCell.xml -netpyne -json
cp LEMS_TwoCell_netpyne.py *.mod *.nml *json ../../NetPyNE/TwoCells
cd ..
################ Copy over nml to netpyne dirs (for testing)
cp *.cell.nml *.channel.nml ../NetPyNE/HHSmall
cp *.cell.nml *.channel.nml ../NetPyNE/HybridSmall
cp *.cell.nml *.channel.nml ../NetPyNE/HybridTut
cp *.cell.nml *.channel.nml ../NetPyNE/M1
################ Test Izh can run
cd ../NetPyNE
nrnivmodl
python LEMS_2007One_netpyne.py
################ Test NetPyNE examples
cd HHSmall
python HH_run.py -nogui
cd ../HybridSmall
nrnivmodl
python Hybrid_run.py -nogui
cd ../HybridTut
nrnivmodl
python HybridTut_run.py -nogui
################ Export NeuroML 2
cd ../HHSmall
python HH_export.py
cp *.nml ../../NeuroML2
cp LEMS*.xml ../../NeuroML2
cd ../HybridSmall
python Hybrid_export.py
cp *.nml ../../NeuroML2
cp LEMS*.xml ../../NeuroML2
cd ../HybridTut
python HybridTut_export.py
cp *.nml ../../NeuroML2
cp LEMS*.xml ../../NeuroML2
cd ../M1
nrnivmodl
python M1_export.py
cp *.nml ../../NeuroML2
cp LEMS*.xml ../../NeuroML2
cd ../../NeuroML2
pynml -validate *cell.nml *channel.nml *synapse.nml HHCellNetwork.net.nml HHSmall.net.nml HybridSmall.net.nml HybridTut.net.nml M1.net.nml SimpleNet.net.nml
################ Test scripts for UI
cd ../NetPyNE/UI
./test_all.sh
cd ../ACnet
rm -rf x86_64
python convert.py
################ Done
cd ../..