From dd6b5dd9560f52fb21bb2dd7302f0376f4c1e497 Mon Sep 17 00:00:00 2001 From: Sichao He <1310722434@qq.com> Date: Sat, 23 Nov 2024 11:49:10 +0800 Subject: [PATCH] [doc] Correct the docstring of pre2post_event_sum (#693) * Correct the docstring of pre2post_event_sum * Fix test bug * Update ad_support.py * Update test_activation.py * Skip test * Update CI.yml --- brainpy/_src/math/pre_syn_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brainpy/_src/math/pre_syn_post.py b/brainpy/_src/math/pre_syn_post.py index bc9785692..06976a35b 100644 --- a/brainpy/_src/math/pre_syn_post.py +++ b/brainpy/_src/math/pre_syn_post.py @@ -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 @@ -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