Skip to content

Commit

Permalink
phase shift with no errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooke-ast committed Jul 23, 2024
1 parent 7e9c193 commit b5811ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pypeit/core/flexure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +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).astype(int)
shift = phase_cross_correlation(imref, imshift, reference_mask=gpm_ref, moving_mask=gpm_shift,
return_error=False).astype(int)
# Extract the overlapping portion of the images
exref = imref.copy()
exshf = imshift.copy()
Expand Down

0 comments on commit b5811ef

Please sign in to comment.