Skip to content

Commit

Permalink
Merge pull request #459 from brainpy/updates
Browse files Browse the repository at this point in the history
add `brainpy.dyn.Alpha` synapse model
  • Loading branch information
chaoming0625 authored Aug 25, 2023
2 parents 574c34a + cd67133 commit 1201310
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 31 deletions.
4 changes: 1 addition & 3 deletions brainpy/_src/dyn/synapses/abstract_models.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from typing import Union, Sequence, Callable, Optional

import jax.numpy
from brainpy import math as bm
from brainpy._src.context import share
from brainpy._src.dyn._docs import pneu_doc
from brainpy._src.dyn.base import SynDyn
from brainpy._src.integrators.joint_eq import JointEq
from brainpy._src.integrators.ode.generic import odeint
from brainpy._src.mixin import AlignPost, ReturnInfo
from brainpy._src.initialize import Constant
from brainpy.types import ArrayType

__all__ = [
Expand Down Expand Up @@ -368,9 +366,9 @@ class Alpha(DualExpon):
Cambridge: Cambridge UP, 2011. 172-95. Print.
Args:
%s
tau_decay: float, ArrayType, Callable. The time constant [ms] of the synaptic decay phase.
The name of this synaptic projection.
%s
"""

def __init__(
Expand Down
1 change: 1 addition & 0 deletions brainpy/dyn/synapses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from brainpy._src.dyn.synapses.abstract_models import (
Delta,
Expon,
Alpha,
DualExpon,
DualExponV2,
NMDA,
Expand Down
35 changes: 31 additions & 4 deletions docs/advanced_tutorials.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
Advanced Tutorials
==================

This section contains tutorials that illustrate more advanced features of BrainPy.



Advanced math
-------------


.. toctree::
:maxdepth: 1

tutorial_advanced/differentiation.ipynb



Interoperation
--------------


.. toctree::
:maxdepth: 1

tutorial_advanced/integrate_flax_into_brainpy.ipynb
tutorial_advanced/integrate_bp_lif_into_flax.ipynb
tutorial_advanced/integrate_bp_convlstm_into_flax.ipynb


Advanced dynamics analysis
--------------------------

.. toctree::
:maxdepth: 2
:maxdepth: 1

tutorial_advanced/math.rst
tutorial_advanced/interoperation.rst
tutorial_advanced/analysis.rst
tutorial_advanced/advanced_lowdim_analysis.ipynb
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Learn more

.. card:: :material-regular:`science;2em` BDP Tutorials
:class-card: sd-text-black sd-bg-light
:link: brain_dynamics_tutorials.html
:link: tutorials.html

.. grid-item::
:columns: 6 6 6 4
Expand Down
7 changes: 0 additions & 7 deletions docs/tutorial_advanced/analysis.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/tutorial_advanced/interoperation.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/tutorial_advanced/math.rst

This file was deleted.

0 comments on commit 1201310

Please sign in to comment.