Skip to content

Commit f87a941

Browse files
made neuralml definitions lower cases
1 parent 95b3951 commit f87a941

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

examples/neuroml2/neuroml2_spec.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
@modelspec.define
10-
class Population(Base):
10+
class population(Base):
1111
"""
1212
Some description...
1313
@@ -23,7 +23,7 @@ class Population(Base):
2323

2424

2525
@modelspec.define
26-
class ExplicitInput(Base):
26+
class explicitInput(Base):
2727
"""
2828
Some description...
2929
@@ -37,7 +37,7 @@ class ExplicitInput(Base):
3737

3838

3939
@modelspec.define
40-
class Network(Base):
40+
class network(Base):
4141
"""
4242
Some description...
4343
@@ -48,12 +48,12 @@ class Network(Base):
4848

4949
id: str = field(validator=instance_of(str))
5050

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)
5353

5454

5555
@modelspec.define
56-
class PulseGenerator(Base):
56+
class pulseGenerator(Base):
5757
"""
5858
Some description...
5959
@@ -71,7 +71,7 @@ class PulseGenerator(Base):
7171

7272

7373
@modelspec.define
74-
class Izhikevich2007Cell(Base):
74+
class izhikevich2007Cell(Base):
7575
"""
7676
Some description...
7777
@@ -107,16 +107,16 @@ class neuroML(Base):
107107
id: str = field(validator=instance_of(str))
108108
version: str = field(validator=instance_of(str))
109109

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)
113113

114114

115115
if __name__ == "__main__":
116116

117117
nml_doc = neuroML(id="TestNeuroML", version="NeuroML_v2.3")
118118

119-
izh = Izhikevich2007Cell(
119+
izh = izhikevich2007Cell(
120120
id="izh2007RS0",
121121
C="100pF",
122122
v0="-60mV",
@@ -131,16 +131,16 @@ class neuroML(Base):
131131
)
132132
nml_doc.izhikevich2007Cells.append(izh)
133133

134-
pg = PulseGenerator(
134+
pg = pulseGenerator(
135135
id="pulseGen_0", delay="100ms", duration="800ms", amplitude="0.07 nA"
136136
)
137137
nml_doc.pulseGenerators.append(pg)
138138

139-
net = Network(id="IzNet")
139+
net = network(id="IzNet")
140140
nml_doc.networks.append(net)
141141

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"))
144144

145145
print(nml_doc)
146146
print(nml_doc.id)

0 commit comments

Comments
 (0)