Open oterocoronel opened 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
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:
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