From c3a857d56531460e54689203ce081627fa042536 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Wed, 22 Nov 2023 15:02:31 +0000 Subject: [PATCH] fix: use correct names for gates --- source/Userdocs/NML2_examples/HH_example_na_channel.nml | 4 ++-- source/Userdocs/NML2_examples/HH_single_compartment.ipynb | 6 +++--- source/Userdocs/NML2_examples/hh-single-compartment.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/Userdocs/NML2_examples/HH_example_na_channel.nml b/source/Userdocs/NML2_examples/HH_example_na_channel.nml index 23f78be9..af59862f 100644 --- a/source/Userdocs/NML2_examples/HH_example_na_channel.nml +++ b/source/Userdocs/NML2_examples/HH_example_na_channel.nml @@ -2,12 +2,12 @@ Na channel for HH neuron Sodium channel for HH cell - + m gate for na channel - + h gate for na channel diff --git a/source/Userdocs/NML2_examples/HH_single_compartment.ipynb b/source/Userdocs/NML2_examples/HH_single_compartment.ipynb index d036ad06..8207400f 100644 --- a/source/Userdocs/NML2_examples/HH_single_compartment.ipynb +++ b/source/Userdocs/NML2_examples/HH_single_compartment.ipynb @@ -72,7 +72,7 @@ " 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", @@ -80,7 +80,7 @@ " 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", @@ -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", diff --git a/source/Userdocs/NML2_examples/hh-single-compartment.py b/source/Userdocs/NML2_examples/hh-single-compartment.py index 870448d9..f6e88fdd 100644 --- a/source/Userdocs/NML2_examples/hh-single-compartment.py +++ b/source/Userdocs/NML2_examples/hh-single-compartment.py @@ -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, @@ -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, @@ -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,