Skip to content

Commit 20ea7e1

Browse files
2 parents 569ddce + 2b92adb commit 20ea7e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

suite2p/registration/register.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ def register_frames(f_align_in, refImg, f_align_out=None, batch_size=100,
580580
if upsample_meanImg:
581581
if not isinstance(upsample_meanImg, (np.ndarray, list, tuple)):
582582
upsample_meanImg = [upsample_meanImg, upsample_meanImg]
583-
mean_img_ups = torch.zeros((Ly*upsample_meanImg[0], Lx*upsample_meanImg[1]), dtype=torch.double, device=device)
584-
counts_ups = torch.zeros((Ly*upsample_meanImg[0], Lx*upsample_meanImg[1]), dtype=torch.int, device=device)
583+
mean_img_ups = torch.zeros((int(Ly*upsample_meanImg[0]), int(Lx*upsample_meanImg[1])), dtype=torch.double, device=device)
584+
counts_ups = torch.zeros((int(Ly*upsample_meanImg[0]), int(Lx*upsample_meanImg[1])), dtype=torch.int, device=device)
585585
else:
586586
mean_img_ups, counts_ups, meanImg_ups = None, None, None
587587

0 commit comments

Comments
 (0)