We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5adea commit 60d1eb6Copy full SHA for 60d1eb6
brainpy/_src/math/pre_syn_post.py
@@ -56,7 +56,7 @@ def pre2post_event_sum(events,
56
for i in range(pre_num):
57
if events[i]:
58
for j in range(idnptr[i], idnptr[i+1]):
59
- post_val[post_ids[i]] += values
+ post_val[post_ids[j]] += values
60
61
When ``values`` is a vector (with the length of ``len(post_ids)``),
62
this function is equivalent to
@@ -70,7 +70,7 @@ def pre2post_event_sum(events,
70
71
72
73
- post_val[post_ids[i]] += values[j]
+ post_val[post_ids[j]] += values[j]
74
75
76
Parameters
0 commit comments