Skip to content

Commit 46f57cd

Browse files
authored
Merge pull request #8 from JustasB/patch-1
Update ChannelpediaToNeuroML2.py
2 parents bc67521 + 3ca9bfb commit 46f57cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Channelpedia/ChannelpediaToNeuroML2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def channelpedia_xml_to_neuroml2(cpd_xml, nml2_file_name, unknowns=""):
157157
comp_type.add(lems.Constant('VOLT_SCALE', '1 mV', 'voltage'))
158158

159159
comp_type.dynamics.add(lems.DerivedVariable(name='V', dimension="none", value="v / VOLT_SCALE"))
160-
comp_type.dynamics.add(lems.DerivedVariable(name='t', dimension="none", value="(%s) * TIME_SCALE"%equation, exposure="t"))
160+
comp_type.dynamics.add(lems.DerivedVariable(name='t', dimension="time", value="(%s) * TIME_SCALE"%equation, exposure="t"))
161161

162162
comp_types[new_comp_type] = comp_type
163163

0 commit comments

Comments
 (0)