Skip to content

Commit

Permalink
[doc] Correct the docstring of pre2post_event_sum (#693)
Browse files Browse the repository at this point in the history
* Correct the docstring of pre2post_event_sum

* Fix test bug

* Update ad_support.py

* Update test_activation.py

* Skip test

* Update CI.yml
  • Loading branch information
Routhleck authored Nov 23, 2024
1 parent 643506b commit dd6b5dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainpy/_src/math/pre_syn_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def pre2post_event_sum(events,
for i in range(pre_num):
if events[i]:
for j in range(idnptr[i], idnptr[i+1]):
post_val[post_ids[i]] += values
post_val[post_ids[j]] += values
When ``values`` is a vector (with the length of ``len(post_ids)``),
this function is equivalent to
Expand All @@ -70,7 +70,7 @@ def pre2post_event_sum(events,
for i in range(pre_num):
if events[i]:
for j in range(idnptr[i], idnptr[i+1]):
post_val[post_ids[i]] += values[j]
post_val[post_ids[j]] += values[j]
Parameters
Expand Down

0 comments on commit dd6b5dd

Please sign in to comment.