From e8b77c87f6fb1dd7317e42b32f76556bd008114c Mon Sep 17 00:00:00 2001 From: epnev Date: Fri, 25 Jan 2019 09:46:44 -0500 Subject: [PATCH] fixed bug occuring when max_shifts is not the same along all dimensions --- caiman/motion_correction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caiman/motion_correction.py b/caiman/motion_correction.py index 907faa01a..ed89db746 100644 --- a/caiman/motion_correction.py +++ b/caiman/motion_correction.py @@ -2216,7 +2216,7 @@ def motion_correct_batch_rigid(fname, max_shifts, dview=None, splits=56, num_spl np.array([high_pass_filter_space(m_, gSig_filt) for m_ in m])) template = cm.motion_correction.bin_median( - m.motion_correct(max_shifts[0], max_shifts[1], template=None)[0]) + m.motion_correct(max_shifts[1], max_shifts[0], template=None)[0]) new_templ = template if add_to_movie is None: