Skip to content

Commit 0e2d538

Browse files
authored
Merge pull request #8 from OpenSourceBrain/development
More tidying up & testing
2 parents fed0c8b + 32a79f1 commit 0e2d538

File tree

8 files changed

+241
-231
lines changed

8 files changed

+241
-231
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ report.*.txt
4848
/NeuroML2/nmllite/LEMS_SimNoisyExample.xml
4949
/NeuroML2/nmllite/NoisyExample.net.nml
5050
/NeuroML2/nmllite/NoisyExample__lems.xml
51+
/NeuroML2/arm64
52+
/NeuroML2/nmllite/arm64

.travis.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

NeuroML2/LEMS_NoisyCurrentInput.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<inputList id="stimInput" component="pulseGen0" population="Pop0">
4444
<input id="0" target="../Pop0/0/IF_curr_exp" destination="synapses"/>
4545
</inputList>
46-
4746
<inputList id="noisy1" component="noisyCurrentSource1" population="Pop0">
4847
<input id="0" target="../Pop0/1/IF_curr_exp" destination="synapses"/>
4948
</inputList>

NeuroML2/TestNoisySources.ipynb

Lines changed: 117 additions & 45 deletions
Large diffs are not rendered by default.

NeuroML2/nmllite/NoisyExample.json

Lines changed: 65 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,78 @@
11
{
22
"NoisyExample": {
3-
"version": "NeuroMLlite v0.2.1",
3+
"version": "NeuroMLlite v0.5.6",
4+
"notes": "Example with NoisyCurrentSource",
45
"parameters": {
56
"input_amp": 0.9
6-
},
7-
"notes": "Example with NoisyCurrentSource",
8-
"cells": [
9-
{
10-
"testcell": {
11-
"pynn_cell": "IF_cond_alpha",
12-
"parameters": {
13-
"tau_refrac": 5,
14-
"i_offset": 0
15-
}
16-
}
7+
},
8+
"cells": {
9+
"testcell": {
10+
"parameters": {
11+
"tau_refrac": 5,
12+
"i_offset": 0
13+
},
14+
"pynn_cell": "IF_cond_alpha"
1715
}
18-
],
19-
"input_sources": [
20-
{
21-
"i_clamp": {
22-
"pynn_input": "DCSource",
23-
"parameters": {
24-
"start": 200.0,
25-
"stop": 800.0,
26-
"amplitude": "input_amp"
27-
}
28-
}
29-
},
30-
{
31-
"noisyCurrentSource0": {
32-
"lems_source_file": "TestNCS.xml",
33-
"parameters": {
34-
"mean": "0.5nA"
35-
}
36-
}
16+
},
17+
"input_sources": {
18+
"i_clamp": {
19+
"parameters": {
20+
"amplitude": "input_amp",
21+
"start": 200.0,
22+
"stop": 800.0
23+
},
24+
"pynn_input": "DCSource"
25+
},
26+
"noisyCurrentSource0": {
27+
"parameters": {
28+
"mean": "0.5nA"
29+
},
30+
"lems_source_file": "TestNCS.xml"
3731
}
38-
],
39-
"regions": [
40-
{
41-
"region1": {
42-
"x": 0.0,
43-
"y": 0.0,
44-
"z": 0.0,
45-
"width": 1000.0,
46-
"height": 100.0,
47-
"depth": 1000.0
48-
}
32+
},
33+
"regions": {
34+
"region1": {
35+
"x": 0.0,
36+
"y": 0.0,
37+
"z": 0.0,
38+
"width": 1000.0,
39+
"height": 100.0,
40+
"depth": 1000.0
4941
}
50-
],
51-
"populations": [
52-
{
53-
"pop0": {
54-
"size": 1,
55-
"component": "testcell",
56-
"properties": {
57-
"color": "1 0 0"
58-
},
59-
"random_layout": {
60-
"region": "region1"
61-
}
42+
},
43+
"populations": {
44+
"pop0": {
45+
"size": 1,
46+
"component": "testcell",
47+
"properties": {
48+
"color": "1 0 0"
49+
},
50+
"random_layout": {
51+
"region": "region1"
6252
}
63-
},
64-
{
65-
"pop1": {
66-
"size": 3,
67-
"component": "testcell",
68-
"properties": {
69-
"color": "0 1 0"
70-
},
71-
"random_layout": {
72-
"region": "region1"
73-
}
53+
},
54+
"pop1": {
55+
"size": 3,
56+
"component": "testcell",
57+
"properties": {
58+
"color": "0 1 0"
59+
},
60+
"random_layout": {
61+
"region": "region1"
7462
}
7563
}
76-
],
77-
"inputs": [
78-
{
79-
"stim0": {
80-
"input_source": "i_clamp",
81-
"population": "pop0",
82-
"percentage": 100.0
83-
}
84-
},
85-
{
86-
"stim1": {
87-
"input_source": "noisyCurrentSource0",
88-
"population": "pop1",
89-
"percentage": 100.0
90-
}
64+
},
65+
"inputs": {
66+
"stim0": {
67+
"input_source": "i_clamp",
68+
"population": "pop0",
69+
"percentage": 100
70+
},
71+
"stim1": {
72+
"input_source": "noisyCurrentSource0",
73+
"population": "pop1",
74+
"percentage": 100
9175
}
92-
]
76+
}
9377
}
9478
}

NeuroML2/nmllite/NoisyExample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
duration='1000',
5959
dt='0.01',
6060
seed=1234,
61-
recordTraces={'all':'*'},
62-
recordSpikes={'all':'*'})
61+
record_traces={'all':'*'},
62+
record_spikes={'all':'*'})
6363

6464
sim.to_json_file()
6565

NeuroML2/nmllite/SimNoisyExample.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"SimNoisyExample": {
3-
"version": "NeuroMLlite v0.2.1",
4-
"network": "NoisyExample.json",
5-
"duration": 1000.0,
6-
"dt": 0.01,
7-
"seed": 1234,
8-
"recordTraces": {
3+
"version": "NeuroMLlite v0.5.6",
4+
"network": "NoisyExample.json",
5+
"duration": 1000.0,
6+
"dt": 0.01,
7+
"seed": 1234,
8+
"record_traces": {
99
"all": "*"
10-
},
11-
"recordSpikes": {
10+
},
11+
"record_spikes": {
1212
"all": "*"
1313
}
1414
}

NeuroML2/scratch.ipynb

Lines changed: 47 additions & 28 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)