Skip to content

Commit

Permalink
test: get rest of test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Aug 22, 2024
1 parent a2f674a commit ce25e31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ def test_photon_array_depr():
# JAX-Galsim does not allow by reference setting - changed this
# to make tests below run
photon_array.dydz = 0.59
# non-nan means allocated for jax-galsim
assert photon_array.hasAllocatedAngles()
else:
dydz[:] = 0.59
np.testing.assert_array_equal(photon_array.dxdz, 0.)
Expand Down Expand Up @@ -691,6 +693,8 @@ def test_photon_array_depr():
# JAX-Galsim does not allow by reference setting - changed this
# to make tests below run
photon_array.pupil_v = 10.0
# jax-galsim is allocated now
assert photon_array.hasAllocatedPupil()
else:
v[:] = 10.0
np.testing.assert_array_equal(photon_array.pupil_u, 0.0)
Expand Down

0 comments on commit ce25e31

Please sign in to comment.