Skip to content

Commit 976597c

Browse files
Merge remote-tracking branch 'upstream/development' into feature_xml_3
2 parents a4bb7de + cd27217 commit 976597c

15 files changed

+420
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,4 @@ cython_debug/
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
.idea/
163163
/examples/document.specification.bson
164+
/examples/neuroml2/hello_world.v.dat
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Lems>
2+
3+
<!--
4+
5+
This LEMS file has been automatically generated using PyNeuroML v1.0.8 (libNeuroML v0.5.2)
6+
7+
-->
8+
9+
<!-- Specify which component to run -->
10+
<Target component="hello_world"/>
11+
12+
<!-- Include core NeuroML2 ComponentType definitions -->
13+
<Include file="Cells.xml"/>
14+
<Include file="Networks.xml"/>
15+
<Include file="Simulation.xml"/>
16+
17+
<Include file="hello_world_neuroml.net.nml"/>
18+
19+
<Simulation id="hello_world" length="1000ms" step="0.1ms" target="IzNet" seed="123"> <!-- Note seed: ensures same random numbers used every run -->
20+
21+
<OutputFile id="output0" fileName="hello_world.v.dat">
22+
<OutputColumn id="IzhPop0[0]" quantity="IzhPop0[0]/v"/>
23+
</OutputFile>
24+
25+
</Simulation>
26+
27+
</Lems>

examples/neuroml2/NeuroML2.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
## NeuroML
2+
Some description...
3+
4+
### Allowed parameters
5+
<table>
6+
<tr>
7+
<td><b>id</b></td>
8+
<td>str</td>
9+
<td><i>The id of the NeuroML 2 document</i></td>
10+
</tr>
11+
12+
13+
<tr>
14+
<td><b>version</b></td>
15+
<td>str</td>
16+
<td><i>NeuroML version used</i></td>
17+
</tr>
18+
19+
20+
</table>
21+
22+
### Allowed children
23+
<table>
24+
<tr>
25+
<td><b>networks</b></td>
26+
<td><a href="#network">Network</a></td>
27+
<td><i>The networks present</i></td>
28+
</tr>
29+
30+
31+
</table>
32+
33+
## Network
34+
Some description...
35+
36+
### Allowed parameters
37+
<table>
38+
<tr>
39+
<td><b>id</b></td>
40+
<td>str</td>
41+
<td><i>The id of the network</i></td>
42+
</tr>
43+
44+
45+
</table>
46+
47+
### Allowed children
48+
<table>
49+
<tr>
50+
<td><b>populations</b></td>
51+
<td><a href="#population">Population</a></td>
52+
<td><i>the pops in the net</i></td>
53+
</tr>
54+
55+
56+
</table>
57+
58+
## Population
59+
Some description...
60+
61+
### Allowed parameters
62+
<table>
63+
<tr>
64+
<td><b>id</b></td>
65+
<td>str</td>
66+
<td><i>The id of the population</i></td>
67+
</tr>
68+
69+
70+
<tr>
71+
<td><b>component</b></td>
72+
<td>str</td>
73+
<td><i>the component to use in the population</i></td>
74+
</tr>
75+
76+
77+
<tr>
78+
<td><b>size</b></td>
79+
<td>int</td>
80+
<td><i>the size of the population</i></td>
81+
</tr>
82+
83+
84+
</table>

examples/neuroml2/NeuroML2.rst

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
=======
2+
NeuroML
3+
=======
4+
Some description...
5+
6+
**Allowed parameters**
7+
8+
=============== =========== ================================
9+
Allowed field Data Type Description
10+
=============== =========== ================================
11+
**id** str The id of the NeuroML 2 document
12+
**version** str NeuroML version used
13+
=============== =========== ================================
14+
15+
**Allowed children**
16+
17+
=============== ====================== ====================
18+
Allowed child Data Type Description
19+
=============== ====================== ====================
20+
**networks** `Network <#network>`__ The networks present
21+
=============== ====================== ====================
22+
23+
=======
24+
Network
25+
=======
26+
Some description...
27+
28+
**Allowed parameters**
29+
30+
=============== =========== =====================
31+
Allowed field Data Type Description
32+
=============== =========== =====================
33+
**id** str The id of the network
34+
=============== =========== =====================
35+
36+
**Allowed children**
37+
38+
=============== ============================ ===================
39+
Allowed child Data Type Description
40+
=============== ============================ ===================
41+
**populations** `Population <#population>`__ the pops in the net
42+
=============== ============================ ===================
43+
44+
==========
45+
Population
46+
==========
47+
Some description...
48+
49+
**Allowed parameters**
50+
51+
=============== =========== ======================================
52+
Allowed field Data Type Description
53+
=============== =========== ======================================
54+
**id** str The id of the population
55+
**component** str the component to use in the population
56+
**size** int the size of the population
57+
=============== =========== ======================================
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"NeuroML": {
3+
"definition": "Some description...",
4+
"allowed_parameters": {
5+
"id": {
6+
"type": "str",
7+
"description": "The id of the NeuroML 2 document"
8+
},
9+
"version": {
10+
"type": "str",
11+
"description": "NeuroML version used"
12+
}
13+
},
14+
"allowed_children": {
15+
"networks": {
16+
"type": "Network",
17+
"description": "The networks present"
18+
}
19+
}
20+
},
21+
"Network": {
22+
"definition": "Some description...",
23+
"allowed_parameters": {
24+
"id": {
25+
"type": "str",
26+
"description": "The id of the network"
27+
}
28+
},
29+
"allowed_children": {
30+
"populations": {
31+
"type": "Population",
32+
"description": "the pops in the net"
33+
}
34+
}
35+
},
36+
"Population": {
37+
"definition": "Some description...",
38+
"allowed_parameters": {
39+
"id": {
40+
"type": "str",
41+
"description": "The id of the population"
42+
},
43+
"component": {
44+
"type": "str",
45+
"description": "the component to use in the population"
46+
},
47+
"size": {
48+
"type": "int",
49+
"description": "the size of the population"
50+
}
51+
}
52+
}
53+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
NeuroML:
2+
definition: Some description...
3+
allowed_parameters:
4+
id:
5+
type: str
6+
description: The id of the NeuroML 2 document
7+
version:
8+
type: str
9+
description: NeuroML version used
10+
allowed_children:
11+
networks:
12+
type: Network
13+
description: The networks present
14+
Network:
15+
definition: Some description...
16+
allowed_parameters:
17+
id:
18+
type: str
19+
description: The id of the network
20+
allowed_children:
21+
populations:
22+
type: Population
23+
description: the pops in the net
24+
Population:
25+
definition: Some description...
26+
allowed_parameters:
27+
id:
28+
type: str
29+
description: The id of the population
30+
component:
31+
type: str
32+
description: the component to use in the population
33+
size:
34+
type: int
35+
description: the size of the population

examples/neuroml2/TestNeuroML.bson

140 Bytes
Binary file not shown.

examples/neuroml2/TestNeuroML.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"TestNeuroML": {
3+
"version": "NeuroML_v2.3",
4+
"networks": {
5+
"net0": {
6+
"populations": {
7+
"pop0": {
8+
"component": "izh2007RS0",
9+
"size": 1
10+
}
11+
}
12+
}
13+
}
14+
}
15+
}

examples/neuroml2/TestNeuroML.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
TestNeuroML:
2+
version: NeuroML_v2.3
3+
networks:
4+
net0:
5+
populations:
6+
pop0:
7+
component: izh2007RS0
8+
size: 1
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<neuroml
2+
xmlns="http://www.neuroml.org/schema/neuroml2"
3+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd"
6+
id="IzhNeuron">
7+
<izhikevich2007Cell id="izh2007RS0" C="100pF" v0="-60mV" k="0.7nS_per_mV" vr="-60mV" vt="-40mV" vpeak="35mV" a="0.03per_ms" b="-2nS" c="-50.0mV" d="100pA"/>
8+
<pulseGenerator id="pulseGen_0" delay="100ms" duration="800ms" amplitude="0.07 nA"/>
9+
<network id="IzNet">
10+
<population id="IzhPop0" component="izh2007RS0" size="1"/>
11+
<explicitInput target="IzhPop0[0]" input="pulseGen_0"/>
12+
</network>
13+
</neuroml>

0 commit comments

Comments
 (0)