Skip to content

Commit

Permalink
test: rename the imports
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Aug 21, 2024
1 parent 9696fbb commit 6a326a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_zernike.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_zernike_eval():
np.ones(4, dtype=float),
np.ones(4, dtype=np.float32)
]:
Z = Zernike(coef)
Z = galsim.zernike.Zernike(coef)
assert Z.coef.dtype == np.float64
assert Z(0.0, 0.0) == 1.0
assert Z(0, 0) == 1.0
Expand All @@ -245,13 +245,13 @@ def test_zernike_eval():
np.ones((4, 4), dtype=float),
np.ones((4, 4), dtype=np.float32)
]:
dz = DoubleZernike(coefs)
dz = galsim.zernike.DoubleZernike(coefs)
assert dz.coef.dtype == np.float64
assert dz(0.0, 0.0) == dz(0, 0)

# Make sure we cast to float in _from_uvxy
uvxy = dz._coef_array_uvxy
dz2 = DoubleZernike._from_uvxy(uvxy.astype(int))
dz2 = galsim.zernike.DoubleZernike._from_uvxy(uvxy.astype(int))
np.testing.assert_array_equal(dz2._coef_array_uvxy, dz._coef_array_uvxy)


Expand Down

0 comments on commit 6a326a7

Please sign in to comment.