Skip to content

Commit

Permalink
TST fix tests for jax
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Oct 8, 2023
1 parent 1d41240 commit 5f5a841
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_shear.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ def test_shear_initialization():
assert_raises(TypeError,galsim.Shear,g=0.5)
assert_raises(TypeError,galsim.Shear,e=0.5)
assert_raises(TypeError,galsim.Shear,eta=0.5)
assert_raises(galsim.GalSimRangeError,galsim.Shear,eta=-0.5,beta=0.*galsim.radians)
assert_raises(galsim.GalSimRangeError,galsim.Shear,g=1.3,beta=0.*galsim.radians)
assert_raises(galsim.GalSimRangeError,galsim.Shear,g=-0.3,beta=0.*galsim.radians)
if hasattr(galsim, "_galsim"):
assert_raises(galsim.GalSimRangeError,galsim.Shear,eta=-0.5,beta=0.*galsim.radians)
assert_raises(galsim.GalSimRangeError,galsim.Shear,g=1.3,beta=0.*galsim.radians)
assert_raises(galsim.GalSimRangeError,galsim.Shear,g=-0.3,beta=0.*galsim.radians)
assert_raises(TypeError,galsim.Shear,e=0.3,beta=0.)
assert_raises(TypeError,galsim.Shear,eta=0.3,beta=0.)
assert_raises(TypeError,galsim.Shear,randomkwarg=0.1)
Expand Down

0 comments on commit 5f5a841

Please sign in to comment.