You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that shifts has a shape of (n_dims, n_frames, n_patches). This code flattens that to a list of length n_dims * n_patches of 1D arrays of length n_frames. Is there a good reason for this? For consistency with the rigid case, imo it would make more sense to keep the output as a list of length n_dims where each entry is an n_frames x n_patches matrix (or the transpose).
If z shifts are also added to the output (which I just added to #300), this change will make it much easier to pull out shifts along a particular dimension (without necessarily knowing whether mcorr was done in 2D or 3D).
The text was updated successfully, but these errors were encountered:
Sure, welcome to go ahead and modify as you feel appropriate! @ArjunPutcha wrote this years ago and I don't think either of us can remember why it's like this.
Just want to bring up this part of the code in
get_shifts
:mesmerize-core/mesmerize_core/caiman_extensions/mcorr.py
Lines 115 to 123 in 6f46b98
My understanding is that
shifts
has a shape of(n_dims, n_frames, n_patches)
. This code flattens that to a list of lengthn_dims * n_patches
of 1D arrays of lengthn_frames
. Is there a good reason for this? For consistency with the rigid case, imo it would make more sense to keep the output as a list of lengthn_dims
where each entry is ann_frames
xn_patches
matrix (or the transpose).If z shifts are also added to the output (which I just added to #300), this change will make it much easier to pull out shifts along a particular dimension (without necessarily knowing whether mcorr was done in 2D or 3D).
The text was updated successfully, but these errors were encountered: