Skip to content

Commit

Permalink
Regenerated for latest version of NeuroML 2 schema
Browse files Browse the repository at this point in the history
Added ion_channel to the NameTable to ensure correct naming of attribute
of ChannelDensity:

ChannelDensity(cond_density='50 mS_per_cm2', ion_channel='NaF',
erev='55.0 mV', ion='na')

This has the unfortunate consequence that the array in doc is singular:
doc.ion_channel.append(chan)
See #46
  • Loading branch information
pgleeson committed Feb 21, 2014
1 parent 4006956 commit 2e10b9a
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 164 deletions.
2 changes: 1 addition & 1 deletion neuroml/examples/ion_channel_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
chan.gates.append(h_gate)

doc = neuroml.NeuroMLDocument()
doc.ion_channels.append(chan)
doc.ion_channel.append(chan)

doc.id = "ChannelMLDemo"

Expand Down
2 changes: 1 addition & 1 deletion neuroml/nml/changed_names.csv
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ iafTauCell,iaf_tau_cells
zSpacing,z_spacing
pulseGenerator,pulse_generators
population,populations
ionChannel,ion_channels
ionChannel,ion_channel
allowedSpaces,allowed_spaces
shellThickness,shell_thickness
experimentalTemp,experimental_temp
Expand Down
3 changes: 3 additions & 0 deletions neuroml/nml/generateds_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def _node_to_python(node):
NameTable['gateHHrates'] = 'gate_hh_rates'
NameTable['gateHHtauInf'] = 'gate_hh_tau_infs'

NameTable['ionChannel'] = 'ion_channel'



NameTable['basePyNNCell'] = 'basePyNNCell'
NameTable['basePyNNIaFCell'] = 'basePyNNIaFCell'
Expand Down
2 changes: 1 addition & 1 deletion neuroml/nml/name_table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ population,populations
reset,reset
b,b
i_offset,i_offset
ionChannel,ion_channels
ionChannel,ion_channel
allowedSpaces,allowed_spaces
shellThickness,shell_thickness
j,j
Expand Down
Loading

0 comments on commit 2e10b9a

Please sign in to comment.