Skip to content

Commit 057b872

Browse files
committed
Update import paths in _base.py: change references from brainstate to brainpy for consistency
1 parent c3f317e commit 057b872

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

brainpy/state/_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ def align_pre(self, dyn: Union[ParamDescriber[T], T]) -> T:
403403
Examples
404404
--------
405405
>>> import brainstate
406-
>>> n1 = brainstate.nn.LIF(10)
407-
>>> n1.align_pre(brainstate.nn.Expon.desc(n1.varshape)) # n2 will run after n1
406+
>>> n1 = brainpy.state.LIF(10)
407+
>>> n1.align_pre(brainpy.state.Expon.desc(n1.varshape)) # n2 will run after n1
408408
"""
409409
if isinstance(dyn, Dynamics):
410410
self.add_after_update(id(dyn), dyn)
@@ -427,7 +427,7 @@ class Neuron(Dynamics):
427427
Base class for all spiking neuron models.
428428
429429
This abstract class serves as the foundation for implementing various spiking neuron
430-
models in the BrainPy framework. It extends the ``brainstate.nn.Dynamics`` class and
430+
models in the BrainPy framework. It extends the ``brainpy.state.Dynamics`` class and
431431
provides common functionality for spike generation, membrane potential dynamics, and
432432
surrogate gradient handling required for training spiking neural networks.
433433

0 commit comments

Comments
 (0)