Skip to content

Commit ebea6b6

Browse files
committed
[doc] update state resetting APIs
1 parent e1fa7c6 commit ebea6b6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

docs/tutorial_toolbox/state_resetting.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"Similar to [state saving and loading](./saving_and_loading.ipynb) , state resetting is implemented with two functions:\n",
1919
"\n",
2020
"- a local function ``.reset_state()`` which resets all local variables in the current node.\n",
21-
"- a global function ``.reset()`` which resets all variables in parent and children nodes."
21+
"- a global function ``brainpy.reset_state()`` which resets all variables in parent and children nodes."
2222
],
2323
"metadata": {
2424
"collapsed": false
@@ -93,7 +93,7 @@
9393
{
9494
"cell_type": "markdown",
9595
"source": [
96-
"By calling ``net.reset()``, we can reset all states in this network, including variables in the neurons, synapses, and networks. By using ``net.reset_state()``, we can reset the local variables which are defined in the current network. "
96+
"By calling ``brainpy.reset_state(net)``, we can reset all states in this network, including variables in the neurons, synapses, and networks. By using ``net.reset_state()``, we can reset the local variables which are defined in the current network. "
9797
],
9898
"metadata": {
9999
"collapsed": false
@@ -115,7 +115,7 @@
115115
],
116116
"source": [
117117
"print('Before reset:', net.N.V.value)\n",
118-
"net.reset()\n",
118+
"bp.reset_state(net)\n",
119119
"print('After reset:', net.N.V.value)"
120120
],
121121
"metadata": {
@@ -157,7 +157,7 @@
157157
{
158158
"cell_type": "markdown",
159159
"source": [
160-
"There is no change for the ``V`` variable, meaning that the network's ``reset_state()`` can not reset states in the children node. Instead, to reset the whole states of the network, users should use ``reset()`` function. "
160+
"There is no change for the ``V`` variable, meaning that the network's ``reset_state()`` can not reset states in the children node. Instead, to reset the whole states of the network, users should use ``brainpy.reset_state()`` function. "
161161
],
162162
"metadata": {
163163
"collapsed": false

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
'Operating System :: OS Independent',
7171
'Programming Language :: Python',
7272
'Programming Language :: Python :: 3',
73-
'Programming Language :: Python :: 3.8',
7473
'Programming Language :: Python :: 3.9',
7574
'Programming Language :: Python :: 3.10',
7675
'Programming Language :: Python :: 3.11',

0 commit comments

Comments
 (0)