diff --git a/caiman/motion_correction.py b/caiman/motion_correction.py index 15f12fd49..70c274310 100644 --- a/caiman/motion_correction.py +++ b/caiman/motion_correction.py @@ -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))))