Skip to content

Commit

Permalink
fix: use correct names for gates
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Nov 22, 2023
1 parent 4f457aa commit c3a857d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions source/Userdocs/NML2_examples/HH_example_na_channel.nml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<notes>Na channel for HH neuron</notes>
<ionChannelHH id="na_channel" species="na" conductance="10pS">
<notes>Sodium channel for HH cell</notes>
<gateHHrates id="na_m" instances="3">
<gateHHrates id="m" instances="3">
<notes>m gate for na channel</notes>
<forwardRate type="HHExpLinearRate" rate="1per_ms" midpoint="-40mV" scale="10mV"/>
<reverseRate type="HHExpRate" rate="4per_ms" midpoint="-65mV" scale="-18mV"/>
</gateHHrates>
<gateHHrates id="na_h" instances="1">
<gateHHrates id="h" instances="1">
<notes>h gate for na channel</notes>
<forwardRate type="HHExpRate" rate="0.07per_ms" midpoint="-65mV" scale="-20mV"/>
<reverseRate type="HHSigmoidRate" rate="1per_ms" midpoint="-35mV" scale="10mV"/>
Expand Down
6 changes: 3 additions & 3 deletions source/Userdocs/NML2_examples/HH_single_compartment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@
" returns: name of the created file\n",
" \"\"\"\n",
" na_channel = IonChannelHH(id=\"na_channel\", notes=\"Sodium channel for HH cell\", conductance=\"10pS\", species=\"na\")\n",
" gate_m = GateHHRates(id=\"na_m\", instances=\"3\", notes=\"m gate for na channel\")\n",
" gate_m = GateHHRates(id=\"m\", instances=\"3\", notes=\"m gate for na channel\")\n",
"\n",
" m_forward_rate = HHRate(type=\"HHExpLinearRate\", rate=\"1per_ms\", midpoint=\"-40mV\", scale=\"10mV\")\n",
" m_reverse_rate = HHRate(type=\"HHExpRate\", rate=\"4per_ms\", midpoint=\"-65mV\", scale=\"-18mV\")\n",
" gate_m.forward_rate = m_forward_rate\n",
" gate_m.reverse_rate = m_reverse_rate\n",
" na_channel.gate_hh_rates.append(gate_m)\n",
"\n",
" gate_h = GateHHRates(id=\"na_h\", instances=\"1\", notes=\"h gate for na channel\")\n",
" gate_h = GateHHRates(id=\"h\", instances=\"1\", notes=\"h gate for na channel\")\n",
" h_forward_rate = HHRate(type=\"HHExpRate\", rate=\"0.07per_ms\", midpoint=\"-65mV\", scale=\"-20mV\")\n",
" h_reverse_rate = HHRate(type=\"HHSigmoidRate\", rate=\"1per_ms\", midpoint=\"-35mV\", scale=\"10mV\")\n",
" gate_h.forward_rate = h_forward_rate\n",
Expand Down Expand Up @@ -111,7 +111,7 @@
" :returns: name of the K channel file\n",
" \"\"\"\n",
" k_channel = IonChannelHH(id=\"k_channel\", notes=\"Potassium channel for HH cell\", conductance=\"10pS\", species=\"k\")\n",
" gate_n = GateHHRates(id=\"k_n\", instances=\"4\", notes=\"n gate for k channel\")\n",
" gate_n = GateHHRates(id=\"n\", instances=\"4\", notes=\"n gate for k channel\")\n",
" n_forward_rate = HHRate(type=\"HHExpLinearRate\", rate=\"0.1per_ms\", midpoint=\"-55mV\", scale=\"10mV\")\n",
" n_reverse_rate = HHRate(type=\"HHExpRate\", rate=\"0.125per_ms\", midpoint=\"-65mV\", scale=\"-80mV\")\n",
" gate_n.forward_rate = n_forward_rate\n",
Expand Down
6 changes: 3 additions & 3 deletions source/Userdocs/NML2_examples/hh-single-compartment.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def create_na_channel():
)
gate_m = component_factory(
"GateHHRates",
id="na_m",
id="m",
instances="3",
notes="m gate for na channel",
validate=False,
Expand All @@ -139,7 +139,7 @@ def create_na_channel():

gate_h = component_factory(
"GateHHRates",
id="na_h",
id="h",
instances="1",
notes="h gate for na channel",
validate=False,
Expand Down Expand Up @@ -186,7 +186,7 @@ def create_k_channel():
)
gate_n = component_factory(
"GateHHRates",
id="k_n",
id="n",
instances="4",
notes="n gate for k channel",
validate=False,
Expand Down

0 comments on commit c3a857d

Please sign in to comment.