Skip to content

Commit

Permalink
fix the incorrect verbose of clear_name_cache()
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jun 20, 2024
1 parent d04839d commit 13c4369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brainpy/_src/math/object_transform/naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def check_name_uniqueness(name, obj):
f'In BrainPy, each object should have a unique name. '
f'However, we detect that {obj} has a used name "{name}". \n'
f'If you try to run multiple trials, you may need \n\n'
f'>>> brainpy.brainpy_object.clear_name_cache() \n\n'
f'>>> brainpy.math.clear_name_cache() \n\n'
f'to clear all cached names. '
)
else:
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial_building/customize_dynamical_systems.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@
}
],
"source": [
"runner = bp.dyn.DSRunner(fhn_net,\n",
"runner = bp.DSRunner(fhn_net,\n",
" monitors=['f1.v', 'X.v'], \n",
" inputs=[('f1.I', 1.5), # relative access to variable \"I\" in 'fhn1'\n",
" ('X.I', 1.0),]) # absolute access to variable \"I\" in 'fhn2'\n",
Expand Down

0 comments on commit 13c4369

Please sign in to comment.