Skip to content

Commit d387a8e

Browse files
authored
Merge pull request #14 from GalSim-developers/phot-is-exact
fix: phot comp is exact
2 parents 11c2a0b + ed2e929 commit d387a8e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tests/test_exponential.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,7 @@ def test_exponential_shoot():
231231
assert np.isclose(added_flux, obj.flux)
232232
assert np.isclose(im.array.sum(), obj.flux)
233233
photons2 = obj.makePhot(poisson_flux=False, rng=rng)
234-
if is_jax_galsim():
235-
np.testing.assert_allclose(photons2.x, photons.x)
236-
np.testing.assert_allclose(photons2.y, photons.y)
237-
np.testing.assert_allclose(photons2.flux, photons.flux)
238-
else:
239-
assert photons2 == photons, "Exponential makePhot not equivalent to drawPhot"
234+
assert photons2 == photons, "Exponential makePhot not equivalent to drawPhot"
240235

241236

242237
@timer

0 commit comments

Comments
 (0)