diff --git a/pypeit/core/flexure.py b/pypeit/core/flexure.py index 23fbaa9cb5..02265a3426 100644 --- a/pypeit/core/flexure.py +++ b/pypeit/core/flexure.py @@ -1218,8 +1218,8 @@ def calculate_image_phase(imref, imshift, gpm_ref=None, gpm_shift=None, maskval= if gpm_shift is None: gpm_shift = np.ones(imshift.shape, dtype=bool) if maskval is None else imshift != maskval # Get a crude estimate of the shift - shift = phase_cross_correlation(imref, imshift, reference_mask=gpm_ref, moving_mask=gpm_shift, - return_error=False).astype(int) + shift, _, _ = phase_cross_correlation(imref, imshift, reference_mask=gpm_ref, moving_mask=gpm_shift) + shift = shift.astype(int) # Extract the overlapping portion of the images exref = imref.copy() exshf = imshift.copy() diff --git a/setup.cfg b/setup.cfg index b2b145ce56..0f8d481f3a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -64,7 +64,7 @@ scripts = [options.extras_require] scikit-image = - scikit-image + scikit-image>=0.23 specutils = specutils>=1.13 test =