7
7
8
8
9
9
@modelspec .define
10
- class Population (Base ):
10
+ class population (Base ):
11
11
"""
12
12
Some description...
13
13
@@ -23,7 +23,7 @@ class Population(Base):
23
23
24
24
25
25
@modelspec .define
26
- class ExplicitInput (Base ):
26
+ class explicitInput (Base ):
27
27
"""
28
28
Some description...
29
29
@@ -37,7 +37,7 @@ class ExplicitInput(Base):
37
37
38
38
39
39
@modelspec .define
40
- class Network (Base ):
40
+ class network (Base ):
41
41
"""
42
42
Some description...
43
43
@@ -48,12 +48,12 @@ class Network(Base):
48
48
49
49
id : str = field (validator = instance_of (str ))
50
50
51
- populations : List [Population ] = field (factory = list )
52
- explicitInputs : List [ExplicitInput ] = field (factory = list )
51
+ populations : List [population ] = field (factory = list )
52
+ explicitInputs : List [explicitInput ] = field (factory = list )
53
53
54
54
55
55
@modelspec .define
56
- class PulseGenerator (Base ):
56
+ class pulseGenerator (Base ):
57
57
"""
58
58
Some description...
59
59
@@ -71,7 +71,7 @@ class PulseGenerator(Base):
71
71
72
72
73
73
@modelspec .define
74
- class Izhikevich2007Cell (Base ):
74
+ class izhikevich2007Cell (Base ):
75
75
"""
76
76
Some description...
77
77
@@ -107,16 +107,16 @@ class neuroML(Base):
107
107
id : str = field (validator = instance_of (str ))
108
108
version : str = field (validator = instance_of (str ))
109
109
110
- izhikevich2007Cells : List [Izhikevich2007Cell ] = field (factory = list )
111
- pulseGenerators : List [PulseGenerator ] = field (factory = list )
112
- networks : List [Network ] = field (factory = list )
110
+ izhikevich2007Cells : List [izhikevich2007Cell ] = field (factory = list )
111
+ pulseGenerators : List [pulseGenerator ] = field (factory = list )
112
+ networks : List [network ] = field (factory = list )
113
113
114
114
115
115
if __name__ == "__main__" :
116
116
117
117
nml_doc = neuroML (id = "TestNeuroML" , version = "NeuroML_v2.3" )
118
118
119
- izh = Izhikevich2007Cell (
119
+ izh = izhikevich2007Cell (
120
120
id = "izh2007RS0" ,
121
121
C = "100pF" ,
122
122
v0 = "-60mV" ,
@@ -131,16 +131,16 @@ class neuroML(Base):
131
131
)
132
132
nml_doc .izhikevich2007Cells .append (izh )
133
133
134
- pg = PulseGenerator (
134
+ pg = pulseGenerator (
135
135
id = "pulseGen_0" , delay = "100ms" , duration = "800ms" , amplitude = "0.07 nA"
136
136
)
137
137
nml_doc .pulseGenerators .append (pg )
138
138
139
- net = Network (id = "IzNet" )
139
+ net = network (id = "IzNet" )
140
140
nml_doc .networks .append (net )
141
141
142
- net .populations .append (Population ("IzhPop0" , component = "izh2007RS0" , size = 1 ))
143
- net .explicitInputs .append (ExplicitInput (target = "IzhPop0[0]" , input = "pulseGen_0" ))
142
+ net .populations .append (population ("IzhPop0" , component = "izh2007RS0" , size = 1 ))
143
+ net .explicitInputs .append (explicitInput (target = "IzhPop0[0]" , input = "pulseGen_0" ))
144
144
145
145
print (nml_doc )
146
146
print (nml_doc .id )
0 commit comments