Skip to content

Commit 3be4322

Browse files
beckermrrmjarvis
authored andcommitted
test: cleanup bounds handling, weirdness remains
1 parent 1f9ad23 commit 3be4322

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_interpolatedimage.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,15 +1936,16 @@ def _compute_maxk_cpp(xim, iim):
19361936
kim[maxk_ix, maxk_ix + offset] = kim[0, 0].real
19371937
new_im = kim.calculate_inverse_fft()
19381938
new_maxk = _compute_maxk_cpp(new_im, iim)
1939+
new_im = new_im[iim._image.bounds]
19391940

19401941
if offset == 0:
1941-
np.testing.assert_allclose(im.array, new_im[iim._image.bounds].array, atol=1e-6, rtol=1e-6)
1942+
np.testing.assert_allclose(im.array, new_im.array, atol=1e-6, rtol=1e-6)
19421943

19431944
print("| % 6d | %10.6f | %18.6f | %17.6f |" % (
19441945
offset,
19451946
orig_maxk,
19461947
new_maxk,
1947-
galsim.InterpolatedImage(new_im[iim._image.bounds], scale=1).maxk),
1948+
galsim.InterpolatedImage(new_im, scale=1).maxk),
19481949
)
19491950

19501951
if offset <= 5:

0 commit comments

Comments
 (0)