Skip to content

Commit

Permalink
Correct the docstring of pre2post_event_sum
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Nov 9, 2024
1 parent 2a5adea commit 60d1eb6
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 60d1eb6

Please sign in to comment.