brainstate 0.1.6__py2.py3-none-any.whl → 0.1.7__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.
brainstate/__init__.py CHANGED
@@ -17,7 +17,7 @@
17
17
  A ``State``-based Transformation System for Program Compilation and Augmentation
18
18
  """
19
19
 
20
- __version__ = "0.1.6"
20
+ __version__ = "0.1.7"
21
21
 
22
22
  from . import augment
23
23
  from . import compile
@@ -877,17 +877,6 @@ def make_hashable(obj):
877
877
  return tuple(sorted((k, make_hashable(v)) for k, v in obj.items()))
878
878
  elif isinstance(obj, set):
879
879
  return frozenset(make_hashable(item) for item in obj)
880
- elif hasattr(obj, '__dict__'): # Handle custom objects
881
- return (
882
- obj.__class__.__name__,
883
- tuple(
884
- sorted(
885
- (k, make_hashable(v))
886
- for k, v in obj.__dict__.items()
887
- if not k.startswith('_')
888
- )
889
- )
890
- )
891
880
  else:
892
881
  # # Use JAX's tree_util for any other pytree structures
893
882
  # try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: brainstate
3
- Version: 0.1.6
3
+ Version: 0.1.7
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
@@ -1,4 +1,4 @@
1
- brainstate/__init__.py,sha256=jCLuGmUnNNYYpHUGsGZrw--LWrAtO0m1ABtU_1qvtRM,1496
1
+ brainstate/__init__.py,sha256=l8qmh_ah9kUi2khglrj4O89ERt0tHdVT8WnVQu1lTcY,1496
2
2
  brainstate/_compatible_import.py,sha256=LUSZlA0APWozxM8Kf9pZrM2YbwY7X3jzVVHZInaBL7Y,4630
3
3
  brainstate/_state.py,sha256=PLzoYx13jIgnzyBxnktLTVPCFl6seG__aNIHS9A5Nms,60770
4
4
  brainstate/_state_test.py,sha256=b6uvZdVRyC4n6-fYzmHNry1b-gJ6zE_kRSxGinqiHaw,1638
@@ -31,7 +31,7 @@ brainstate/compile/_loop_collect_return.py,sha256=qOYGoD2TMZd2Px6y241GWNwSjOLyaK
31
31
  brainstate/compile/_loop_collect_return_test.py,sha256=pEJdcOthEM17q5kXYhgR6JfzzqibijD_O1VPXVe_Ml4,1808
32
32
  brainstate/compile/_loop_no_collection.py,sha256=tPkSxee41VexWEALpN1uuT78BDrX3uT1FHv8WZtov4c,7549
33
33
  brainstate/compile/_loop_no_collection_test.py,sha256=ivavF59xep_g9bV1SSdXd5E1f6nhc7EUBfcbgHpxbfg,1419
34
- brainstate/compile/_make_jaxpr.py,sha256=3VYwfjmHSp5Uh_VEQVXYgxsUcpWcDN_2tNnZKh1dFV0,37736
34
+ brainstate/compile/_make_jaxpr.py,sha256=adQwsEOxFZQk8yr0SbB3Tjh5j3bBvZCZSh7JVf6ymCA,37387
35
35
  brainstate/compile/_make_jaxpr_test.py,sha256=xPusEJikMQRfoOmUFrugGcE5UpRm0giHoL_NPomN5rI,4791
36
36
  brainstate/compile/_progress_bar.py,sha256=AhAyyI_ckzgaj0PSj1ep1hq8rGzQLSyC2aVCYaT-e-o,7502
37
37
  brainstate/compile/_unvmap.py,sha256=9S42MeTmFJa8nfBI_AjEfrAdUsDmM3KFat59O8zXIEw,4120
@@ -124,8 +124,8 @@ brainstate/util/pretty_repr.py,sha256=7Xp7IFNUeP7cGlpvwwJyBslbQVnXEqC1I6neV1Jx1S
124
124
  brainstate/util/pretty_table.py,sha256=uJVaamFGQ4nKP8TkEGPWXHpzjMecDo2q1Ah6XtRjdPY,108117
125
125
  brainstate/util/scaling.py,sha256=U6DM-afPrLejiGqo1Nla7z4YbTBVicctsBEweurr_mk,7524
126
126
  brainstate/util/struct.py,sha256=2Y_wuDFQ6ldl_H4_w0IjzAtkbHooVgdsVbnT7Z6_Efc,17528
127
- brainstate-0.1.6.dist-info/LICENSE,sha256=VZe9u1jgUL2eCY6ZPOYgdb8KCblCHt8ECdbtJid6e1s,11550
128
- brainstate-0.1.6.dist-info/METADATA,sha256=PsI82NGU6Zeh18JitOiA0jnEgullQ5aA_tl4zdl4Iqw,4122
129
- brainstate-0.1.6.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
130
- brainstate-0.1.6.dist-info/top_level.txt,sha256=eQbGgKn0ptx7FDWuua0V0wr4K1VHi2iOUCYo3fUQBRA,11
131
- brainstate-0.1.6.dist-info/RECORD,,
127
+ brainstate-0.1.7.dist-info/LICENSE,sha256=VZe9u1jgUL2eCY6ZPOYgdb8KCblCHt8ECdbtJid6e1s,11550
128
+ brainstate-0.1.7.dist-info/METADATA,sha256=PrV7tP9tHHf5d8ZOUoXPa9t5Sm0WBo41thLQVjfgHuA,4122
129
+ brainstate-0.1.7.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
130
+ brainstate-0.1.7.dist-info/top_level.txt,sha256=eQbGgKn0ptx7FDWuua0V0wr4K1VHi2iOUCYo3fUQBRA,11
131
+ brainstate-0.1.7.dist-info/RECORD,,