Skip to content

Commit 0bf843c

Browse files
committed
Add example neuroml
1 parent 6441695 commit 0bf843c

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
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>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<neuroml xmlns="http://www.neuroml.org/schema/neuroml2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.neuroml.org/schema/neuroml2 https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd" id="IzhNeuron">
2+
<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"/>
3+
<pulseGenerator id="pulseGen_0" delay="100ms" duration="800ms" amplitude="0.07 nA"/>
4+
<network id="IzNet">
5+
<population id="IzhPop0" component="izh2007RS0" size="1"/>
6+
<explicitInput target="IzhPop0[0]" input="pulseGen_0"/>
7+
</network>
8+
</neuroml>

0 commit comments

Comments
 (0)