Skip to content

Commit bcc1ee1

Browse files
authored
Apply suggestions from code review
Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
1 parent 61c6ce1 commit bcc1ee1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_interpolatedimage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,7 @@ def test_ne(ref):
16621662
unequal InterpolatedImages or InterpolatedKImages may be the same due to truncation.
16631663
"""
16641664
final, ref_image = ref
1665+
# jax-galsim changes: Try using a big flux to avoid floating point differences
16651666
obj1 = galsim.InterpolatedImage(ref_image, flux=2e24, calculate_maxk=False, calculate_stepk=False)
16661667

16671668
# Copy ref_image and perturb it slightly in the middle, away from where the InterpolatedImage
@@ -1671,6 +1672,7 @@ def test_ne(ref):
16711672
perturb_image._array = perturb_image._array.at[64, 64].set(perturb_image._array[64, 64] * 100)
16721673
else:
16731674
perturb_image.array[64, 64] *= 100
1675+
# jax-galsim changes: Try using a big flux to avoid floating point differences
16741676
obj2 = galsim.InterpolatedImage(perturb_image, flux=2e24, calculate_maxk=False, calculate_stepk=False)
16751677

16761678
with galsim.utilities.printoptions(threshold=128*128):

0 commit comments

Comments
 (0)