Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/chaobrain/brainstate into s…
Browse files Browse the repository at this point in the history
…ichao-patch-1
  • Loading branch information
Routhleck committed Nov 5, 2024
2 parents ee866f0 + e972393 commit e7eb645
Show file tree
Hide file tree
Showing 162 changed files with 35,702 additions and 31,728 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ The official documentation is hosted on Read the Docs: [https://brainstate.readt

## See also the BDP ecosystem

We are building the BDP ecosystem: https://ecosystem-for-brain-dynamics.readthedocs.io/
We are building the Brain Dynamics Programming ecosystem: https://ecosystem-for-brain-dynamics.readthedocs.io/


14 changes: 7 additions & 7 deletions brainstate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@

__all__ = (
[
'augment', 'compile', 'environ', 'event', 'functional',
'graph', 'init', 'mixin', 'nn', 'optim', 'random',
'surrogate', 'typing', 'util',
# deprecated
'transform',
'augment', 'compile', 'environ', 'event', 'functional',
'graph', 'init', 'mixin', 'nn', 'optim', 'random',
'surrogate', 'typing', 'util',
# deprecated
'transform',
] +
_state_all
)
Expand All @@ -56,9 +56,9 @@

transform._deprecations = dict()
for key in compile.__all__:
transform._deprecations[key] = (f'brainstate.transform.{key}', f'brainstate.compile.{key}', getattr(compile, key))
transform._deprecations[key] = (f'brainstate.transform.{key}', f'brainstate.compile.{key}', getattr(compile, key))
for key in augment.__all__:
transform._deprecations[key] = (f'brainstate.transform.{key}', f'brainstate.augment.{key}', getattr(augment, key))
transform._deprecations[key] = (f'brainstate.transform.{key}', f'brainstate.augment.{key}', getattr(augment, key))
transform.__getattr__ = deprecation_getattr('brainstate.transform', transform._deprecations)
del deprecation_getattr

Expand Down
Loading

0 comments on commit e7eb645

Please sign in to comment.