brainstate 0.1.0.post20250501__py2.py3-none-any.whl → 0.1.0.post20250503__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ else:
65
65
  trace_ctx.set_axis_env(prev)
66
66
 
67
67
  if jax.__version_info__ < (0, 6, 0):
68
- from jax.util import safe_map, safe_zip, unzip2, unzip3, wraps
68
+ from jax.util import safe_map, safe_zip, unzip2, wraps
69
69
 
70
70
  else:
71
71
  def safe_map(f, *args):
@@ -97,21 +97,6 @@ else:
97
97
  return tuple(xs), tuple(ys)
98
98
 
99
99
 
100
- def unzip3(xyzs: Iterable[tuple[T1, T2, T3]]
101
- ) -> tuple[tuple[T1, ...], tuple[T2, ...], tuple[T3, ...]]:
102
- """Unzip sequence of length-3 tuples into three tuples."""
103
- # Note: we deliberately don't use zip(*xyzs) because it is lazily evaluated,
104
- # is too permissive about inputs, and does not guarantee a length-3 output.
105
- xs: list[T1] = []
106
- ys: list[T2] = []
107
- zs: list[T3] = []
108
- for x, y, z in xyzs:
109
- xs.append(x)
110
- ys.append(y)
111
- zs.append(z)
112
- return tuple(xs), tuple(ys), tuple(zs)
113
-
114
-
115
100
  def fun_name(fun: Callable):
116
101
  name = getattr(fun, "__name__", None)
117
102
  if name is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: brainstate
3
- Version: 0.1.0.post20250501
3
+ Version: 0.1.0.post20250503
4
4
  Summary: A ``State``-based Transformation System for Program Compilation and Augmentation.
5
5
  Home-page: https://github.com/chaobrain/brainstate
6
6
  Author: BrainState Developers
@@ -48,7 +48,7 @@ Requires-Dist: jaxlib[tpu] ; extra == 'tpu'
48
48
 
49
49
 
50
50
  <p align="center">
51
- <img alt="Header image of brainstate." src="https://github.com/chaobrain/brainstate/blob/main/docs/_static/brainstate.png" width=40%>
51
+ <img alt="Header image of brainstate." src="https://raw.githubusercontent.com/chaobrain/brainstate/main/docs/_static/brainstate.png" width=40%>
52
52
  </p>
53
53
 
54
54
 
@@ -74,7 +74,11 @@ You can install ``brainstate`` via pip:
74
74
  pip install brainstate --upgrade
75
75
  ```
76
76
 
77
+ Alternatively, you can install `BrainX`, which bundles `brainstate` with other compatible packages for a comprehensive brain modeling ecosystem:
77
78
 
79
+ ```bash
80
+ pip install BrainX -U
81
+ ```
78
82
 
79
83
  ## Documentation
80
84
 
@@ -1,5 +1,5 @@
1
1
  brainstate/__init__.py,sha256=AkZyyFkn4fB8g2aT6Rc2MO1xICPpUZuDtdze-eUQNc0,1496
2
- brainstate/_compatible_import.py,sha256=nEmjwX7aCH_kiXsVJXMjOd_SMj2etMiHxCF3z3H8GF0,5444
2
+ brainstate/_compatible_import.py,sha256=7YGGnkoHMSV4hrTUTN0pTH8bmBCnu0L6E-eB8EdUokQ,4830
3
3
  brainstate/_state.py,sha256=Qvb6O3LFUcq_V8wG6GLAgkckImEwfzDi79JFrZ-lVWc,60753
4
4
  brainstate/_state_test.py,sha256=b6uvZdVRyC4n6-fYzmHNry1b-gJ6zE_kRSxGinqiHaw,1638
5
5
  brainstate/_utils.py,sha256=uJ6WWKq3yb05ZdktCQGLWOXsOJveL1H9pR7eev70Jes,1693
@@ -126,8 +126,8 @@ brainstate/util/_pretty_table.py,sha256=c3c2UH8hIZ-lCas_KL462kLgsnBc6pjJiMuapPi6
126
126
  brainstate/util/_scaling.py,sha256=pc_eM_SZVwkY65I4tJh1ODiHNCoEhsfFXl2zBK0PLAg,7562
127
127
  brainstate/util/_struct.py,sha256=RNQewdpyNcfntOJYefsDVWQjZW3RLsISKmTHpBhzyc8,17517
128
128
  brainstate/util/filter.py,sha256=blTktYNaNgCsuwv7xABjvbWsoi4Fozov6C2cXX-ta2g,14124
129
- brainstate-0.1.0.post20250501.dist-info/LICENSE,sha256=VZe9u1jgUL2eCY6ZPOYgdb8KCblCHt8ECdbtJid6e1s,11550
130
- brainstate-0.1.0.post20250501.dist-info/METADATA,sha256=l6z_DHPZegmbLm2JoQT101SmHbULrVJ5yLn-Dd_NvhM,3655
131
- brainstate-0.1.0.post20250501.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
132
- brainstate-0.1.0.post20250501.dist-info/top_level.txt,sha256=eQbGgKn0ptx7FDWuua0V0wr4K1VHi2iOUCYo3fUQBRA,11
133
- brainstate-0.1.0.post20250501.dist-info/RECORD,,
129
+ brainstate-0.1.0.post20250503.dist-info/LICENSE,sha256=VZe9u1jgUL2eCY6ZPOYgdb8KCblCHt8ECdbtJid6e1s,11550
130
+ brainstate-0.1.0.post20250503.dist-info/METADATA,sha256=OSUkTgf1YBIYUojDxojQcil4Gwj5pC2pEa8URkbxm7Y,3848
131
+ brainstate-0.1.0.post20250503.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
132
+ brainstate-0.1.0.post20250503.dist-info/top_level.txt,sha256=eQbGgKn0ptx7FDWuua0V0wr4K1VHi2iOUCYo3fUQBRA,11
133
+ brainstate-0.1.0.post20250503.dist-info/RECORD,,