alihaydaroglu / suite3d

Fast, accurate, volumetric cell detection. Developed for Light Beads Microscopy, usable for other volumetric 2P. In development
6 stars 0 forks source link

max_rigid_shift should be int #54

Open oterocoronel opened 11 months ago

oterocoronel commented 11 months ago

I have a recording with a large lateral offset, and the registration crashed. I tracked down the error to lines 562-563 from iter_step.py:

if max_rigid_shift < n.ceil(n.max(n.abs(summary['plane_shifts']))) + 5:
        max_rigid_shift = n.ceil(n.max(n.abs(summary['plane_shifts']))) + 5

Line 563 should result in an int (not float), since it is used later on for defining the size of some matrices. This should fix it:

max_rigid_shift = n.ceil(n.max(n.abs(summary['plane_shifts']))).astype(n.int16) + 5