Skip to content

Commit

Permalink
Use F order when reshaping masks (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbb authored Oct 22, 2024
1 parent 5d7c9b3 commit c7d5df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesmerize_core/caiman_extensions/cnmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_masks(
masks = np.zeros(shape=(dims[0], dims[1], len(component_indices)), dtype=bool)

for n, ix in enumerate(component_indices):
s = cnmf_obj.estimates.A[:, ix].toarray().reshape(cnmf_obj.dims)
s = cnmf_obj.estimates.A[:, ix].toarray().reshape(cnmf_obj.dims, order='F')
s[s >= threshold] = 1
s[s < threshold] = 0

Expand Down

0 comments on commit c7d5df6

Please sign in to comment.