Skip to content

Commit

Permalink
Fix conversion from sparse matrix to dense array
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbb committed Aug 10, 2024
1 parent f32e8ad commit 6fe91e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caiman/source_extraction/cnmf/map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def run_CNMF_patches(file_name, shape, params, gnb=1, dview=None,
YrA_tot *= nA[:, None]
nB = np.ravel(np.sqrt(B_tot.power(2).sum(0)))
B_tot /= nB
B_tot = np.array(B_tot, dtype=np.float32)
B_tot = B_tot.toarray().astype(np.float32)
# B_tot = scipy.sparse.coo_matrix(B_tot)
F_tot *= nB[:, None]

Expand Down

0 comments on commit 6fe91e6

Please sign in to comment.