Skip to content

Commit 07872de

Browse files
committed
feat: add brainpy_state module and update dependencies
1 parent 6788982 commit 07872de

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

brainpy/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146

147147
optimizers = optim
148148

149-
try:
150-
import brainpy.state as state
151-
except:
152-
pass
149+
150+
# New package
151+
from brainpy import state
152+

brainpy/state/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ``brainpy.state`` README
2+
3+
This module is being maintained by [brainpy_state](https://github.com/chaobrain/brainpy.state).

brainpy/state/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2025 BrainX Ecosystem Limited. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from brainpy_state import *
17+
from brainpy_state import __all__
18+
19+
20+

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = [
4343
"brainunit",
4444
"brainevent>=0.0.4",
4545
"braintools>=0.0.9",
46-
'brainpy-state',
46+
'brainpy_state>=0.0.2',
4747
]
4848

4949
dynamic = ['version']

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ brainunit
33
brainevent>=0.0.4
44
braintools>=0.1.0
55
brainstate>=0.2.7
6-
brainpy-state
6+
brainpy_state>=0.0.2
77
jax
88
tqdm

0 commit comments

Comments
 (0)