Skip to content

Commit fdfd90b

Browse files
authored
Merge pull request #505 from AkitsuFaye/master
Changed the order of code blocks in the docs of hh models and lif models
2 parents c89bffa + 9f258f5 commit fdfd90b

File tree

2 files changed

+350
-247
lines changed

2 files changed

+350
-247
lines changed

brainpy/_src/dyn/neurons/hh.py

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def update(self, x=None):
180180
return super().update(x)
181181

182182

183-
class HHLTC(HHTypedNeuron):
183+
class HHLTC(NeuDyn):
184184
r"""Hodgkin–Huxley neuron model with liquid time constant.
185185
186186
**Model Descriptions**
@@ -222,6 +222,20 @@ class HHLTC(HHTypedNeuron):
222222
methods available to analyze the system. Certain properties and general behaviors,
223223
such as limit cycles, can be proven to exist.
224224
225+
226+
References
227+
----------
228+
229+
.. [1] Hodgkin, Alan L., and Andrew F. Huxley. "A quantitative description
230+
of membrane current and its application to conduction and excitation
231+
in nerve." The Journal of physiology 117.4 (1952): 500.
232+
.. [2] https://en.wikipedia.org/wiki/Hodgkin%E2%80%93Huxley_model
233+
.. [3] Ashwin, Peter, Stephen Coombes, and Rachel Nicks. "Mathematical
234+
frameworks for oscillatory network dynamics in neuroscience."
235+
The Journal of Mathematical Neuroscience 6, no. 1 (2016): 1-92.
236+
237+
**Examples**
238+
225239
Here is a simple usage example:
226240
227241
.. code-block:: python
@@ -275,17 +289,6 @@ class HHLTC(HHTypedNeuron):
275289
276290
277291
278-
References
279-
----------
280-
281-
.. [1] Hodgkin, Alan L., and Andrew F. Huxley. "A quantitative description
282-
of membrane current and its application to conduction and excitation
283-
in nerve." The Journal of physiology 117.4 (1952): 500.
284-
.. [2] https://en.wikipedia.org/wiki/Hodgkin%E2%80%93Huxley_model
285-
.. [3] Ashwin, Peter, Stephen Coombes, and Rachel Nicks. "Mathematical
286-
frameworks for oscillatory network dynamics in neuroscience."
287-
The Journal of Mathematical Neuroscience 6, no. 1 (2016): 1-92.
288-
289292
290293
"""
291294

@@ -440,6 +443,19 @@ class HH(HHLTC):
440443
441444
&\beta_n(V) = 0.125 \exp(\frac{-(V + 65)} {80})
442445
446+
References
447+
----------
448+
449+
.. [1] Hodgkin, Alan L., and Andrew F. Huxley. "A quantitative description
450+
of membrane current and its application to conduction and excitation
451+
in nerve." The Journal of physiology 117.4 (1952): 500.
452+
.. [2] https://en.wikipedia.org/wiki/Hodgkin%E2%80%93Huxley_model
453+
.. [3] Ashwin, Peter, Stephen Coombes, and Rachel Nicks. "Mathematical
454+
frameworks for oscillatory network dynamics in neuroscience."
455+
The Journal of Mathematical Neuroscience 6, no. 1 (2016): 1-92.
456+
457+
**Examples**
458+
443459
Here is a simple usage example:
444460
445461
.. code-block:: python
@@ -497,17 +513,6 @@ class HH(HHLTC):
497513
name: str
498514
The group name.
499515
500-
References
501-
----------
502-
503-
.. [1] Hodgkin, Alan L., and Andrew F. Huxley. "A quantitative description
504-
of membrane current and its application to conduction and excitation
505-
in nerve." The Journal of physiology 117.4 (1952): 500.
506-
.. [2] https://en.wikipedia.org/wiki/Hodgkin%E2%80%93Huxley_model
507-
.. [3] Ashwin, Peter, Stephen Coombes, and Rachel Nicks. "Mathematical
508-
frameworks for oscillatory network dynamics in neuroscience."
509-
The Journal of Mathematical Neuroscience 6, no. 1 (2016): 1-92.
510-
511516
"""
512517

513518
def dV(self, V, t, m, h, n, I):
@@ -758,7 +763,7 @@ def update(self, x=None):
758763
return super().update(x)
759764

760765

761-
class WangBuzsakiHHLTC(HHTypedNeuron):
766+
class WangBuzsakiHHLTC(NeuDyn):
762767
r"""Wang-Buzsaki model [9]_, an implementation of a modified Hodgkin-Huxley model with liquid time constant.
763768
764769
Each model is described by a single compartment and obeys the current balance equation:
@@ -801,6 +806,15 @@ class WangBuzsakiHHLTC(HHTypedNeuron):
801806
:math:`\beta_{n}(V)=0.125\exp (-(V+44) / 80)` ; :math:`g_{\mathrm{K}}=9 \mathrm{mS} / \mathrm{cm}^{2}`, and
802807
:math:`E_{\mathrm{K}}=-90 \mathrm{mV}`.
803808
809+
810+
References
811+
----------
812+
.. [9] Wang, X.J. and Buzsaki, G., (1996) Gamma oscillation by synaptic
813+
inhibition in a hippocampal interneuronal network model. Journal of
814+
neuroscience, 16(20), pp.6402-6413.
815+
816+
**Examples**
817+
804818
Here is a simple usage example:
805819
806820
.. code-block:: python
@@ -851,11 +865,6 @@ class WangBuzsakiHHLTC(HHTypedNeuron):
851865
name: str
852866
The group name.
853867
854-
References
855-
----------
856-
.. [9] Wang, X.J. and Buzsaki, G., (1996) Gamma oscillation by synaptic
857-
inhibition in a hippocampal interneuronal network model. Journal of
858-
neuroscience, 16(20), pp.6402-6413.
859868
860869
"""
861870

@@ -1008,6 +1017,15 @@ class WangBuzsakiHH(WangBuzsakiHHLTC):
10081017
:math:`\beta_{n}(V)=0.125\exp (-(V+44) / 80)` ; :math:`g_{\mathrm{K}}=9 \mathrm{mS} / \mathrm{cm}^{2}`, and
10091018
:math:`E_{\mathrm{K}}=-90 \mathrm{mV}`.
10101019
1020+
1021+
References
1022+
----------
1023+
.. [9] Wang, X.J. and Buzsaki, G., (1996) Gamma oscillation by synaptic
1024+
inhibition in a hippocampal interneuronal network model. Journal of
1025+
neuroscience, 16(20), pp.6402-6413.
1026+
1027+
**Examples**
1028+
10111029
Here is an example:
10121030
10131031
.. code-block:: python
@@ -1058,12 +1076,6 @@ class WangBuzsakiHH(WangBuzsakiHHLTC):
10581076
name: str
10591077
The group name.
10601078
1061-
References
1062-
----------
1063-
.. [9] Wang, X.J. and Buzsaki, G., (1996) Gamma oscillation by synaptic
1064-
inhibition in a hippocampal interneuronal network model. Journal of
1065-
neuroscience, 16(20), pp.6402-6413.
1066-
10671079
"""
10681080

10691081
def dV(self, V, t, h, n, I):

0 commit comments

Comments
 (0)