Skip to content

Commit 60d1eb6

Browse files
committed
Correct the docstring of pre2post_event_sum
1 parent 2a5adea commit 60d1eb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainpy/_src/math/pre_syn_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def pre2post_event_sum(events,
5656
for i in range(pre_num):
5757
if events[i]:
5858
for j in range(idnptr[i], idnptr[i+1]):
59-
post_val[post_ids[i]] += values
59+
post_val[post_ids[j]] += values
6060
6161
When ``values`` is a vector (with the length of ``len(post_ids)``),
6262
this function is equivalent to
@@ -70,7 +70,7 @@ def pre2post_event_sum(events,
7070
for i in range(pre_num):
7171
if events[i]:
7272
for j in range(idnptr[i], idnptr[i+1]):
73-
post_val[post_ids[i]] += values[j]
73+
post_val[post_ids[j]] += values[j]
7474
7575
7676
Parameters

0 commit comments

Comments
 (0)