Skip to content

Commit 3ca9bfb

Browse files
authored
Update ChannelpediaToNeuroML2.py
t variable was missing correct dimension
1 parent bc67521 commit 3ca9bfb

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)