Skip to content

Commit cb9f0cf

Browse files
committed
format codes
1 parent b9da040 commit cb9f0cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ BrainModels/
1717
book/
1818
docs/examples
1919
docs/apis/jaxsetting.rst
20+
docs/quickstart/data
2021
examples/recurrent_neural_network/neurogym
2122
develop/iconip_paper
2223
develop/benchmark/COBA/results

brainpy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = "2.1.1"
3+
__version__ = "2.1.2"
44

55

66
try:
@@ -15,7 +15,7 @@
1515

1616

1717
# fundamental modules
18-
from . import errors, tools
18+
from . import errors, tools, check
1919

2020

2121
# "base" module

brainpy/math/autograd.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# -*- coding: utf-8 -*-
22

3-
from typing import Union, Callable, Dict, Sequence
4-
53
from functools import partial
4+
from typing import Union, Callable, Dict, Sequence
65

76
import jax
87
import numpy as np
@@ -41,7 +40,7 @@ def call_func(*args, **kwargs):
4140
except UnexpectedTracerError as e:
4241
for v, d in zip(grad_vars, old_grad_vs): v.value = d
4342
for v, d in zip(dyn_vars, old_dyn_vs): v.value = d
44-
raise errors.JaxTracerError(variables=dyn_vars+grad_vars) from e
43+
raise errors.JaxTracerError(variables=dyn_vars + grad_vars) from e
4544
for v, d in zip(grad_vars, new_grad_vs): v.value = d
4645
for v, d in zip(dyn_vars, new_dyn_vs): v.value = d
4746

0 commit comments

Comments
 (0)