fix `cube_recenter_dft_upsampling` wrt `subi_size=None`
@@ -670,8 +670,11 @@ def cube_recenter_dft_upsampling(array, cy_1, cx_1, negative=False, fwhm=4,
raise TypeError('Input array is not a cube or 3d array')
n_frames, sizey, sizex = array.shape
+ if subi_size is None:
+ pass
+ else:
if not isinstance(subi_size, int):
- raise ValueError('subi_size must be an integer')
+ raise ValueError('subi_size must be an integer or None')
if sizey % 2 == 0:
if subi_size % 2 != 0:
subi_size += 1
