Skip to content

Commit

Permalink
Merge pull request #537 from chaoming0625/master
Browse files Browse the repository at this point in the history
[doc] update doc
  • Loading branch information
chaoming0625 authored Nov 5, 2023
2 parents 687744d + 1c0e38d commit f4ca7ae
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
14 changes: 7 additions & 7 deletions brainpy/_src/dynsys.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,13 +733,13 @@ def __init__(
self.slice_vars[k] = bm.VariableView(v, index)

# sub-nodes
nodes = target.nodes(method='relative', level=1, include_self=False).subset(DynamicalSystem)
for k, node in nodes.items():
if isinstance(node, Dynamic):
node = DynView(node, self.index)
else:
node = DynView(node, self.index)
setattr(self, k, node)
# nodes = target.nodes(method='relative', level=0, include_self=True).subset(DynamicalSystem)
# for k, node in nodes.items():
# if isinstance(node, Dynamic):
# node = DynView(node, self.index)
# else:
# node = DynView(node, self.index)
# setattr(self, k, node)

# initialization
# get size
Expand Down
10 changes: 10 additions & 0 deletions docs/_templates/ion_template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. role:: hidden
:class: hidden-section
.. currentmodule:: {{ module }}


{{ name | underline}}

.. autoclass:: {{ name }}
:members: master_type

10 changes: 5 additions & 5 deletions docs/apis/brainpy.dyn.channels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Base Classes
.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst
:template: ion_template.rst

IonChannel

Expand All @@ -48,7 +48,7 @@ Calcium Channels
.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst
:template: ion_template.rst

CalciumChannel
ICaN_IS2008
Expand All @@ -65,7 +65,7 @@ Potassium Channels
.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst
:template: ion_template.rst

PotassiumChannel
IKDR_Ba2002v2
Expand Down Expand Up @@ -95,7 +95,7 @@ Sodium Channels
.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst
:template: ion_template.rst

SodiumChannel
INa_Ba2002
Expand All @@ -112,7 +112,7 @@ Other Channels
.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst
:template: ion_template.rst

Ih_HM1992
Ih_De1996
Expand Down
2 changes: 1 addition & 1 deletion docs/apis/brainpy.dyn.ions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ potential therapeutic interventions.
.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst
:template: ion_template.rst

mix_ions
Ion
Expand Down

0 comments on commit f4ca7ae

Please sign in to comment.