Skip to content

Commit 4b0d0f3

Browse files
committed
[bug] fix brainpy.connect.FixedProb bug
1 parent d85f02a commit 4b0d0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/_src/connect/random_conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def build_mat(self):
131131
mat = (self._jaxrand.uniform(size=(self.pre_num, self.post_num)) < self.prob) * pre_state
132132
mat = bm.asarray(mat)
133133
if not self.include_self:
134-
mat = bm.fill_diagonal(mat, False)
134+
bm.fill_diagonal(mat, False)
135135
return mat.astype(MAT_DTYPE)
136136

137137

0 commit comments

Comments
 (0)