Skip to content

Commit

Permalink
fixed bug occuring when max_shifts is not the same along all dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
epnev committed Jan 25, 2019
1 parent 48385bc commit e8b77c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caiman/motion_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e8b77c8

Please sign in to comment.