Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_celestial_galsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_angle():
assert_raises(TypeError,galsim.AngleUnit, 1, 3)
assert_raises(TypeError,galsim.Angle, 3.4)
assert_raises(TypeError,galsim.Angle, theta1, galsim.degrees)
assert_raises((ValueError, TypeError), galsim.Angle, 'spam')
assert_raises((ValueError, TypeError), galsim.Angle, 'spam', galsim.degrees)
assert_raises(TypeError,galsim.Angle, 1, 3)


Expand Down
8 changes: 2 additions & 6 deletions tests/test_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,12 +1576,8 @@ def test_np_fft():
def round_cast(array, dt):
# array.astype(dt) doesn't round to the nearest for integer types.
# This rounds first if dt is integer and then casts.
if is_jax_galsim():
# NOTE JAX doesn't round to the nearest int when drawing
pass
else:
if dt(0.5) != 0.5:
array = np.around(array)
if dt(0.5) != 0.5:
array = np.around(array)
return array.astype(dt)

@timer
Expand Down
Loading