Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
c0d8ba2
Merge pull request #4 from PKU-NIP-Lab/master
ztqakita May 9, 2022
2b91ae2
update docs
chaoming0625 May 19, 2022
e2c7668
update SDE integrators
chaoming0625 May 19, 2022
f204fc1
add `keep_size` and `noise` supports on neuron and channel models
chaoming0625 May 19, 2022
1360fae
updates tetss
chaoming0625 May 20, 2022
1b7a5cd
fix bugs
chaoming0625 May 20, 2022
a6f69be
feat: add `get()` method in `Monitor`
chaoming0625 May 20, 2022
a62d1fa
update docs
chaoming0625 May 21, 2022
75a532a
composable design for channels
chaoming0625 May 21, 2022
5c3d93d
feat: new solution for synapses: output, plasticity and synapse are d…
chaoming0625 May 21, 2022
874589d
Merge branch 'master' of https://github.com/PKU-NIP-Lab/BrainPy
chaoming0625 May 21, 2022
a976dff
feat: decompose synapse components
chaoming0625 May 24, 2022
f507728
update FDE integrators
chaoming0625 May 24, 2022
affb9e7
remove `models` module in `brainpy.compat`
chaoming0625 May 24, 2022
9d91360
update docs
chaoming0625 May 24, 2022
559df73
feat: add ProbDist connector
chaoming0625 May 24, 2022
fccda6b
feat: update regular connectors
chaoming0625 May 24, 2022
237d58b
feat: update apis
chaoming0625 May 24, 2022
9ebd442
feat: update 'brainpy.dyn' module
chaoming0625 May 24, 2022
f265252
fix tests
chaoming0625 May 24, 2022
e5531db
version 2.1.13
chaoming0625 May 24, 2022
85dfc97
[channels] update channel models
chaoming0625 May 26, 2022
57f5cb3
[module] move `nn` module into `compat`
chaoming0625 May 28, 2022
2e88da0
[module] fix `brainpy.compat.nn` module
chaoming0625 May 28, 2022
38c7fb8
[math] add `get_dint()` and `get_dfloat()` methods
chaoming0625 May 29, 2022
f5ff009
[module] new system for dynamics training
chaoming0625 May 29, 2022
035fec3
fix test bug
chaoming0625 May 29, 2022
4e29a87
Merge pull request #226 from chaoming0625/master
chaoming0625 May 29, 2022
ef2a56d
update training apis
chaoming0625 May 30, 2022
11f0c48
update training apis (#227)
chaoming0625 May 30, 2022
36dde22
add the decision-making model to the simulation quickstart
c-xy17 May 30, 2022
3ed7506
fix a bug in model_transform
c-xy17 May 30, 2022
5714fde
Add a warning when `resolutions` is a single float
c-xy17 May 30, 2022
5e4ca98
update the analysis tutorial
c-xy17 May 30, 2022
1f95b83
Update quickstart and the analysis module (#229)
c-xy17 May 30, 2022
4e2b3d3
remove `brainpy.running.Minitor`. Using `brainpy.tools.DotDict` instead.
chaoming0625 May 30, 2022
1afaf49
update runners and replace `Monitor` to `DotDict`
chaoming0625 Jun 2, 2022
3735445
update codes
chaoming0625 Jun 2, 2022
fb63584
[module] update `brainpy.losses` module
chaoming0625 Jun 4, 2022
aac793e
[module] enhance `brainpy.analysis` for directly analyzing DynamicalS…
chaoming0625 Jun 4, 2022
58496ac
[example] simulation model examples with hierarchy structures
chaoming0625 Jun 4, 2022
3f6ae8d
feat: modify conv layers
ztqakita Jun 4, 2022
240179d
update examples
chaoming0625 Jun 5, 2022
519da02
Merge branch 'bp-2.2.0' of https://github.com/PKU-NIP-Lab/BrainPy
chaoming0625 Jun 5, 2022
d51eb20
remove duplicate tests
chaoming0625 Jun 5, 2022
70a3e9a
fix `l2_norm` bug
chaoming0625 Jun 5, 2022
5a3ac81
Eseential updates for montors, analysis, losses, and examples (#230)
chaoming0625 Jun 5, 2022
4983b85
Merge branch 'PKU-NIP-Lab:master' into master
ztqakita Jun 5, 2022
02e01b2
fix cuda compilation
chaoming0625 Jun 6, 2022
f2b2ac6
Merge branch 'PKU-NIP-Lab:bp-2.2.0' into bp-2.2.0
ztqakita Jun 6, 2022
19d682f
Merge pull request #5 from ztqakita/bp-2.2.0
ztqakita Jun 6, 2022
9f1ea28
update brainpylib
chaoming0625 Jun 9, 2022
b1ff146
[analysis] upgrade analysis module
chaoming0625 Jun 10, 2022
0f3cb09
[base] upgrade base module
chaoming0625 Jun 10, 2022
5d42f98
[loss] upgrade losses module
chaoming0625 Jun 10, 2022
cdce37d
[analysis] solve the variable tracing problem after performing analysis
chaoming0625 Jun 11, 2022
ce303cd
NEW VERSION of BrainPy: integrate simulation, training and analysis t…
chaoming0625 Jun 18, 2022
d86aaea
[compat] remove brainpy.compat
chaoming0625 Jun 18, 2022
92ea9aa
fix: numpy op bugs
ztqakita Jun 22, 2022
f7959c7
feat: add numpy op tests
ztqakita Jun 22, 2022
ba04a47
Update numpy_ops.py
ztqakita Jun 23, 2022
e936c5b
Update numpy_ops.py
ztqakita Jun 23, 2022
2b4560b
Update numpy_ops.py
ztqakita Jun 23, 2022
1f5d38c
Update test_random.py
ztqakita Jun 24, 2022
065bc3e
Update Windows_CI.yml
ztqakita Jun 24, 2022
0e6c103
Update Windows_CI.yml
ztqakita Jun 24, 2022
0804f9e
Update Windows_CI.yml
ztqakita Jun 24, 2022
cda2819
Update Windows_CI.yml
ztqakita Jun 24, 2022
5fa8ed0
Update Windows_CI.yml
ztqakita Jun 24, 2022
2a68d45
Update Windows_CI.yml
ztqakita Jun 24, 2022
bfc17f2
Update Windows_CI.yml
ztqakita Jun 24, 2022
7de0b77
Update test_numpy_ops.py
ztqakita Jun 24, 2022
7147b4a
Update test_numpy_ops.py
ztqakita Jun 24, 2022
e5866d0
delete test_ngrc_lorenz temporarily
ztqakita Jun 24, 2022
49a3211
test modification jax==0.3.14
ztqakita Jun 24, 2022
c9c5fad
add numpy op test(#6)
ztqakita Jun 24, 2022
44b3ea8
add numpy op tests(#231)
ztqakita Jun 24, 2022
b58a9e3
Whole system update
chaoming0625 Jun 25, 2022
f81b30e
fix conflict from master
chaoming0625 Jun 25, 2022
8b89b99
merge latest bp-2.2.0
chaoming0625 Jun 25, 2022
4956b34
update requirements
chaoming0625 Jun 26, 2022
2e90bd0
fix tests
chaoming0625 Jun 26, 2022
135ca16
fix tests
chaoming0625 Jun 26, 2022
090c104
fix tests
chaoming0625 Jun 26, 2022
60ab0a6
Integrated simulation, simulaton and analysis (#232)
chaoming0625 Jun 26, 2022
0a57019
update docs
chaoming0625 Jun 27, 2022
2239ef0
Merge pull request #233 from chaoming0625/master
chaoming0625 Jun 27, 2022
b59f0c3
unify `trainable` setting between brainpy.layers and other modules
chaoming0625 Jun 27, 2022
525c4a6
update and fix bugs
chaoming0625 Jul 1, 2022
eb93544
Merge pull request #234 from chaoming0625/master
chaoming0625 Jul 1, 2022
17a3228
fix bugs
chaoming0625 Jul 1, 2022
3b65324
fix bugs
chaoming0625 Jul 1, 2022
d23d6cd
Merge pull request #235 from chaoming0625/master
chaoming0625 Jul 1, 2022
bceb5e5
update apis, docs, examples and others
chaoming0625 Jul 11, 2022
db25bc6
update apis, docs, examples and others 2
chaoming0625 Jul 12, 2022
c82b69b
update apis, docs, examples and others (#236)
chaoming0625 Jul 12, 2022
65238f6
updates
chaoming0625 Jul 12, 2022
58fe093
fixs
chaoming0625 Jul 12, 2022
4815733
Merge pull request #237 from chaoming0625/master
chaoming0625 Jul 12, 2022
c56452e
fix: add dtype promotion = standard
ztqakita Jul 12, 2022
2a29939
fix: add dtype promotion = standard
ztqakita Jul 12, 2022
9baafe8
add numpy op tests(#231)
ztqakita Jul 12, 2022
f95eef5
fix: add dtype promotion = standard(#239)
ztqakita Jul 12, 2022
4d0c82a
update apis and models
chaoming0625 Jul 14, 2022
97a4976
enable monitor inputs by add "reset_input()" function
chaoming0625 Jul 27, 2022
b2be307
updates
chaoming0625 Jul 29, 2022
65b48aa
updates
chaoming0625 Jul 29, 2022
0bdf00c
update apis and docs
chaoming0625 Aug 4, 2022
b2bb06e
Merge pull request #240 from chaoming0625/master
chaoming0625 Aug 4, 2022
30ae2c2
update apis and examples
chaoming0625 Aug 6, 2022
534e043
update docs and apis
chaoming0625 Aug 6, 2022
3c4e200
Merge pull request #241 from chaoming0625/master
chaoming0625 Aug 6, 2022
c48d0bb
update github actions
chaoming0625 Aug 6, 2022
9b91fdd
update github actions
chaoming0625 Aug 6, 2022
49b0420
update github actions
chaoming0625 Aug 6, 2022
54823db
change doc path/organization
chaoming0625 Aug 6, 2022
e609d47
Merge pull request #242 from chaoming0625/master
chaoming0625 Aug 6, 2022
37b70fb
update advanced tutorials
chaoming0625 Aug 6, 2022
1a3d8c5
update tests
chaoming0625 Aug 9, 2022
cc2cd73
Merge pull request #243 from chaoming0625/master
chaoming0625 Aug 9, 2022
53b704b
Update MacOS_CI.yml
ztqakita Aug 9, 2022
f87b4bb
update quickstart docs
chaoming0625 Aug 10, 2022
8ba66a2
enable jit error checking
chaoming0625 Aug 10, 2022
b65b766
Merge pull request #244 from chaoming0625/master
chaoming0625 Aug 10, 2022
a8d3344
Merge branch 'PKU-NIP-Lab:bp-2.2.0' into bp-2.2.0
ztqakita Aug 10, 2022
41c3ef9
update apis and examples
chaoming0625 Aug 11, 2022
0edfadc
Merge pull request #245 from chaoming0625/master
chaoming0625 Aug 11, 2022
99ae0d9
Merge branch 'PKU-NIP-Lab:bp-2.2.0' into bp-2.2.0
ztqakita Aug 11, 2022
7787c57
fix: Tensor -> Array
ztqakita Aug 11, 2022
bbb4fd0
fix bugs
ztqakita Aug 11, 2022
355abf3
Update runners.py
ztqakita Aug 11, 2022
255b491
docs update
ztqakita Aug 11, 2022
b59940c
update apis and tests
chaoming0625 Aug 11, 2022
1edfce5
Merge pull request #246 from chaoming0625/master
chaoming0625 Aug 11, 2022
21b4bc5
Merge branch 'bp-2.2.0' of https://github.com/ztqakita/BrainPy into b…
ztqakita Aug 11, 2022
417c1ed
Update biological_models.py
ztqakita Aug 11, 2022
7160d65
Docs update and bugs fixed (#247)
ztqakita Aug 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<!--- For example, markdown files should pass markdownlint locally according to the rules -->
<!--- See how your change affects other areas of the code, etc. -->

## Screenshots(optional)
<!--- If Screenshots is not necessary or not available in this pull request, you can delete this section -->
<!--- Changes including html and css are required to have screenshots -->

## Types of changes
<!--- What types of changes does your code introduce? -->
<!--- Only left the line that best describes this pull request -->
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/Linux_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
# python -m pip install https://github.com/google/jax/archive/refs/tags/jax-v0.3.14.tar.gz
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
python setup.py install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest brainpy/
4 changes: 3 additions & 1 deletion .github/workflows/MacOS_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install jax==0.3.14
python -m pip install jaxlib==0.3.14
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
python setup.py install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest brainpy/
4 changes: 2 additions & 2 deletions .github/workflows/Sync_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Merge master -> brainpy-2.x
- name: Merge master -> brainpy-2.2.x
uses: devmasx/merge-branch@master
with:
type: now
from_branch: master
target_branch: brainpy-2.x
target_branch: brainpy-2.2.x
github_token: ${{ github.token }}
7 changes: 4 additions & 3 deletions .github/workflows/Windows_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install numpy==1.21.0
python -m pip install "jax[cpu]==0.3.2" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
python -m pip install numpy>=1.21.0
python -m pip install "jaxlib==0.3.14" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
python -m pip install https://github.com/google/jax/archive/refs/tags/jax-v0.3.14.tar.gz
python -m pip install -r requirements-win.txt
python -m pip install tqdm brainpylib
python setup.py install
Expand All @@ -38,7 +39,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest brainpy/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ brainpy/base/tests/io_test_tmp*

development

brainpy/dyn/tests/data
examples/simulation/data
examples/simulation/results
examples/analysis/data
extensions/.idea
extensions/wheelhouse
Expand Down Expand Up @@ -211,3 +213,4 @@ dmypy.json
cython_debug/

/docs/apis/simulation/generated/
!/brainpy/dyn/tests/data/
40 changes: 27 additions & 13 deletions brainpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

__version__ = "2.1.12"
__version__ = "2.2.0"


try:
Expand All @@ -15,7 +15,7 @@


# fundamental modules
from . import errors, tools, check
from . import errors, tools, check, modes


# "base" module
Expand All @@ -29,7 +29,15 @@


# toolboxes
from . import connect, initialize, optimizers, measure, losses, datasets, inputs
from . import (connect, # synaptic connection
initialize, # weight initialization
optimizers, # gradient descent optimizers
losses, # loss functions
measure, # methods for data analysis
datasets, # methods for generating data
inputs, # methods for generating input currents
algorithms, # online or offline training algorithms
)


# numerical integrators
Expand All @@ -45,26 +53,32 @@

# dynamics simulation
from . import dyn
from .dyn import (channels, # channel models
layers, # ANN layers
networks, # network models
neurons, # neuron groups
rates, # rate models
synapses, # synaptic dynamics
synouts, # synaptic output
synplast, # synaptic plasticity
)
from .dyn.runners import *


# neural networks modeling
from . import nn


# running
from . import running
# dynamics training
from . import train


# automatic dynamics analysis
from . import analysis


# "visualization" module, will be removed soon
from .visualization import visualize
# running
from . import running


# compatible interface
from .compat import * # compat
# "visualization" module, will be removed soon
from .visualization import visualize


# convenient access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

from .offline import *
from .online import *
from . import utils
Loading