Skip to content

Commit 3ebca0e

Browse files
beckermrrmjarvis
authored andcommitted
Update test_interpolatedimage.py
1 parent f36ce82 commit 3ebca0e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_interpolatedimage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,8 +1913,7 @@ def test_interpolatedimage_maxk_kspace_pixel_gap():
19131913
# and so we subtract 1
19141914
maxk_ix = np.floor(orig_maxk / kim.scale).astype(int) - 1
19151915
if offset > 0:
1916-
val = kim[maxk_ix + offset, maxk_ix]
1917-
kim[maxk_ix + offset, maxk_ix] = val / np.abs(val) * kim[0, 0].real
1916+
kim[maxk_ix + offset, maxk_ix] = kim[0, 0].real
19181917
new_im = kim.calculate_inverse_fft()
19191918
new_maxk = galsim.InterpolatedImage(new_im, scale=1, pad_factor=1).maxk
19201919

0 commit comments

Comments
 (0)