Skip to content

Commit

Permalink
Fixed float type in shift_image
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Stolker committed Apr 16, 2020
1 parent 7576a83 commit 7151f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynpoint/util/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ def fake_planet(images: np.ndarray,
for i in range(images.shape[0]):
if psf.shape[0] == 1:
im_shift[i, ] = shift_image(psf[0, ],
(y_shift[i], x_shift[i]),
(float(y_shift[i]), float(x_shift[i])),
interpolation,
mode='reflect')

else:
im_shift[i, ] = shift_image(psf[i, ],
(y_shift[i], x_shift[i]),
(float(y_shift[i]), float(x_shift[i])),
interpolation,
mode='reflect')

Expand Down

0 comments on commit 7151f7c

Please sign in to comment.