Skip to content

Commit

Permalink
Update motion_correction.py
Browse files Browse the repository at this point in the history
  • Loading branch information
epnev authored Aug 14, 2019
1 parent 469f911 commit c6796d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caiman/motion_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def motion_correct(self, template=None, save_movie=False):
self.motion_correct_pwrigid(template=template, save_movie=save_movie)
if self.is3D:
# TODO - error at this point after saving
b0 = np.ceil(np.maximum(np.max(np.abs(self.x_shifts_els)),
np.max(np.abs(self.y_shifts_els)),
np.max(np.abs(self.z_shifts_els))))
b0 = np.ceil(np.max([np.max(np.abs(self.x_shifts_els)),
np.max(np.abs(self.y_shifts_els)),
np.max(np.abs(self.z_shifts_els))]))
else:
b0 = np.ceil(np.maximum(np.max(np.abs(self.x_shifts_els)),
np.max(np.abs(self.y_shifts_els))))
Expand Down

0 comments on commit c6796d6

Please sign in to comment.