Skip to content

Commit 5f3106b

Browse files
committed
fix: np array astype
1 parent dba6ba0 commit 5f3106b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/connect/custom_conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, conn_mat):
2525
self.pre_num, self.post_num = conn_mat.shape
2626
self.pre_size, self.post_size = (self.pre_num,), (self.post_num,)
2727

28-
self.conn_mat = np.asarray(conn_mat, dtype=MAT_DTYPE)
28+
self.conn_mat = np.asarray(conn_mat).astype(MAT_DTYPE)
2929

3030
def __call__(self, pre_size, post_size):
3131
assert self.pre_num == tools.size2num(pre_size)

0 commit comments

Comments
 (0)