Skip to content

Commit

Permalink
fix scikit-image argument update
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooke-ast committed Jul 24, 2024
1 parent b5811ef commit 76062b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pypeit/core/flexure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ scripts =

[options.extras_require]
scikit-image =
scikit-image
scikit-image>=0.23
specutils =
specutils>=1.13
test =
Expand Down

0 comments on commit 76062b4

Please sign in to comment.