Skip to content

Commit 4323c61

Browse files
accompanying files
1 parent 9090b4b commit 4323c61

File tree

7 files changed

+44
-216
lines changed

7 files changed

+44
-216
lines changed

examples/neuroml2/NeuroML2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ Some description...
2323
<table>
2424
<tr>
2525
<td><b>izhikevich2007Cells</b></td>
26-
<td><a href="#izhikevich2007cell">Izhikevich2007Cell</a></td>
26+
<td><a href="#list">List</a></td>
2727
<td><i></i></td>
2828
</tr>
2929

3030

3131
<tr>
3232
<td><b>pulseGenerators</b></td>
33-
<td><a href="#pulsegenerator">PulseGenerator</a></td>
33+
<td><a href="#list">List</a></td>
3434
<td><i></i></td>
3535
</tr>
3636

3737

3838
<tr>
3939
<td><b>networks</b></td>
40-
<td><a href="#network">Network</a></td>
40+
<td><a href="#list">List</a></td>
4141
<td><i>The networks present</i></td>
4242
</tr>
4343

@@ -181,14 +181,14 @@ Some description...
181181
<table>
182182
<tr>
183183
<td><b>populations</b></td>
184-
<td><a href="#population">Population</a></td>
184+
<td><a href="#list">List</a></td>
185185
<td><i>the pops in the net</i></td>
186186
</tr>
187187

188188

189189
<tr>
190190
<td><b>explicitInputs</b></td>
191-
<td><a href="#explicitinput">ExplicitInput</a></td>
191+
<td><a href="#list">List</a></td>
192192
<td><i></i></td>
193193
</tr>
194194

examples/neuroml2/NeuroML2.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Allowed field Data Type Description
1414

1515
**Allowed children**
1616

17-
======================= ============================================ ====================
18-
Allowed child Data Type Description
19-
======================= ============================================ ====================
20-
**izhikevich2007Cells** `Izhikevich2007Cell <#izhikevich2007cell>`__
21-
**pulseGenerators** `PulseGenerator <#pulsegenerator>`__
22-
**networks** `Network <#network>`__ The networks present
23-
======================= ============================================ ====================
17+
======================= ================ ====================
18+
Allowed child Data Type Description
19+
======================= ================ ====================
20+
**izhikevich2007Cells** `List <#list>`__
21+
**pulseGenerators** `List <#list>`__
22+
**networks** `List <#list>`__ The networks present
23+
======================= ================ ====================
2424

2525
==================
2626
Izhikevich2007Cell
@@ -76,12 +76,12 @@ Allowed field Data Type Description
7676

7777
**Allowed children**
7878

79-
================== ================================== ===================
80-
Allowed child Data Type Description
81-
================== ================================== ===================
82-
**populations** `Population <#population>`__ the pops in the net
83-
**explicitInputs** `ExplicitInput <#explicitinput>`__
84-
================== ================================== ===================
79+
================== ================ ===================
80+
Allowed child Data Type Description
81+
================== ================ ===================
82+
**populations** `List <#list>`__ the pops in the net
83+
**explicitInputs** `List <#list>`__
84+
================== ================ ===================
8585

8686
==========
8787
Population

examples/neuroml2/NeuroML2.specification.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
},
1414
"allowed_children": {
1515
"izhikevich2007Cells": {
16-
"type": "Izhikevich2007Cell",
16+
"type": "List",
1717
"description": ""
1818
},
1919
"pulseGenerators": {
20-
"type": "PulseGenerator",
20+
"type": "List",
2121
"description": ""
2222
},
2323
"networks": {
24-
"type": "Network",
24+
"type": "List",
2525
"description": "The networks present"
2626
}
2727
}
@@ -106,11 +106,11 @@
106106
},
107107
"allowed_children": {
108108
"populations": {
109-
"type": "Population",
109+
"type": "List",
110110
"description": "the pops in the net"
111111
},
112112
"explicitInputs": {
113-
"type": "ExplicitInput",
113+
"type": "List",
114114
"description": ""
115115
}
116116
}
Lines changed: 7 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,9 @@
11
<?xml version="1.0" ?>
2-
<modelspec>
3-
<NeuroML>
4-
<definition>Some description...</definition>
5-
<allowed_parameters>
6-
<id>
7-
<type>str</type>
8-
<description>The id of the NeuroML 2 document</description>
9-
</id>
10-
<version>
11-
<type>str</type>
12-
<description>NeuroML version used</description>
13-
</version>
14-
</allowed_parameters>
15-
<allowed_children>
16-
<izhikevich2007Cells>
17-
<type>Izhikevich2007Cell</type>
18-
<description/>
19-
</izhikevich2007Cells>
20-
<pulseGenerators>
21-
<type>PulseGenerator</type>
22-
<description/>
23-
</pulseGenerators>
24-
<networks>
25-
<type>Network</type>
26-
<description>The networks present</description>
27-
</networks>
28-
</allowed_children>
29-
</NeuroML>
30-
<Izhikevich2007Cell>
31-
<definition>Some description...</definition>
32-
<allowed_parameters>
33-
<id>
34-
<type>str</type>
35-
<description>The id of the cell...</description>
36-
</id>
37-
<C>
38-
<type>str</type>
39-
<description/>
40-
</C>
41-
<v0>
42-
<type>str</type>
43-
<description/>
44-
</v0>
45-
<k>
46-
<type>str</type>
47-
<description/>
48-
</k>
49-
<vr>
50-
<type>str</type>
51-
<description/>
52-
</vr>
53-
<vt>
54-
<type>str</type>
55-
<description/>
56-
</vt>
57-
<vpeak>
58-
<type>str</type>
59-
<description/>
60-
</vpeak>
61-
<a>
62-
<type>str</type>
63-
<description/>
64-
</a>
65-
<b>
66-
<type>str</type>
67-
<description/>
68-
</b>
69-
<c>
70-
<type>str</type>
71-
<description/>
72-
</c>
73-
<d>
74-
<type>str</type>
75-
<description/>
76-
</d>
77-
</allowed_parameters>
78-
</Izhikevich2007Cell>
79-
<PulseGenerator>
80-
<definition>Some description...</definition>
81-
<allowed_parameters>
82-
<id>
83-
<type>str</type>
84-
<description>The id of the pulseGenerator</description>
85-
</id>
86-
<delay>
87-
<type>str</type>
88-
<description>the delay</description>
89-
</delay>
90-
<duration>
91-
<type>str</type>
92-
<description>the duration</description>
93-
</duration>
94-
<amplitude>
95-
<type>str</type>
96-
<description>the amplitude</description>
97-
</amplitude>
98-
</allowed_parameters>
99-
</PulseGenerator>
100-
<Network>
101-
<definition>Some description...</definition>
102-
<allowed_parameters>
103-
<id>
104-
<type>str</type>
105-
<description>The id of the network</description>
106-
</id>
107-
</allowed_parameters>
108-
<allowed_children>
109-
<populations>
110-
<type>Population</type>
111-
<description>the pops in the net</description>
112-
</populations>
113-
<explicitInputs>
114-
<type>ExplicitInput</type>
115-
<description/>
116-
</explicitInputs>
117-
</allowed_children>
2+
<NeuroML id="TestNeuroML" version="NeuroML_v2.3">
3+
<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"/>
4+
<PulseGenerator id="pulseGen_0" delay="100ms" duration="800ms" amplitude="0.07 nA"/>
5+
<Network id="IzNet">
6+
<Population id="IzhPop0" component="izh2007RS0" size="1"/>
7+
<ExplicitInput target="IzhPop0[0]" input="pulseGen_0"/>
1188
</Network>
119-
<Population>
120-
<definition>Some description...</definition>
121-
<allowed_parameters>
122-
<id>
123-
<type>str</type>
124-
<description>The id of the population</description>
125-
</id>
126-
<component>
127-
<type>str</type>
128-
<description>the component to use in the population</description>
129-
</component>
130-
<size>
131-
<type>int</type>
132-
<description>the size of the population</description>
133-
</size>
134-
</allowed_parameters>
135-
</Population>
136-
<ExplicitInput>
137-
<definition>Some description...</definition>
138-
<allowed_parameters>
139-
<target>
140-
<type>str</type>
141-
<description>the target of the input</description>
142-
</target>
143-
<input>
144-
<type>str</type>
145-
<description>the input, e.g. pulseGenerator</description>
146-
</input>
147-
</allowed_parameters>
148-
</ExplicitInput>
149-
</modelspec>
9+
</NeuroML>

examples/neuroml2/NeuroML2.specification.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ NeuroML:
99
description: NeuroML version used
1010
allowed_children:
1111
izhikevich2007Cells:
12-
type: Izhikevich2007Cell
12+
type: List
1313
description: ''
1414
pulseGenerators:
15-
type: PulseGenerator
15+
type: List
1616
description: ''
1717
networks:
18-
type: Network
18+
type: List
1919
description: The networks present
2020
Izhikevich2007Cell:
2121
definition: Some description...
@@ -76,10 +76,10 @@ Network:
7676
description: The id of the network
7777
allowed_children:
7878
populations:
79-
type: Population
79+
type: List
8080
description: the pops in the net
8181
explicitInputs:
82-
type: ExplicitInput
82+
type: List
8383
description: ''
8484
Population:
8585
definition: Some description...

examples/neuroml2/TestNeuroML.xml

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,9 @@
11
<?xml version="1.0" ?>
2-
<modelspec>
3-
<TestNeuroML>
4-
<version>NeuroML_v2.3</version>
5-
<izhikevich2007Cells>
6-
<izh2007RS0>
7-
<C>100pF</C>
8-
<v0>-60mV</v0>
9-
<k>0.7nS_per_mV</k>
10-
<vr>-60mV</vr>
11-
<vt>-40mV</vt>
12-
<vpeak>35mV</vpeak>
13-
<a>0.03per_ms</a>
14-
<b>-2nS</b>
15-
<c>-50.0mV</c>
16-
<d>100pA</d>
17-
</izh2007RS0>
18-
</izhikevich2007Cells>
19-
<pulseGenerators>
20-
<pulseGen_0>
21-
<delay>100ms</delay>
22-
<duration>800ms</duration>
23-
<amplitude>0.07 nA</amplitude>
24-
</pulseGen_0>
25-
</pulseGenerators>
26-
<networks>
27-
<IzNet>
28-
<populations>
29-
<IzhPop0>
30-
<component>izh2007RS0</component>
31-
<size>1</size>
32-
</IzhPop0>
33-
</populations>
34-
<explicitInputs>
35-
<target>IzhPop0[0]</target>
36-
<input>pulseGen_0</input>
37-
</explicitInputs>
38-
</IzNet>
39-
</networks>
40-
</TestNeuroML>
41-
</modelspec>
2+
<NeuroML id="TestNeuroML" version="NeuroML_v2.3">
3+
<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"/>
4+
<PulseGenerator id="pulseGen_0" delay="100ms" duration="800ms" amplitude="0.07 nA"/>
5+
<Network id="IzNet">
6+
<Population id="IzhPop0" component="izh2007RS0" size="1"/>
7+
<ExplicitInput target="IzhPop0[0]" input="pulseGen_0"/>
8+
</Network>
9+
</NeuroML>

examples/neuroml2/neuroml2_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ class NeuroML(Base):
184184
print(yy)
185185
d.write(yy)
186186

187-
save_to_xml_file(doc_dict, "NeuroML2.specification.xml")
187+
save_to_xml_file(nml_doc, "NeuroML2.specification.xml")

0 commit comments

Comments
 (0)