Skip to content

Commit

Permalink
update test for floating pt tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
shanosborne committed Dec 13, 2018
1 parent c573d4f commit 9de2d41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions poppy/tests/test_wfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,5 @@ def test_ParameterizedAberration():
pd_wave *= pupil
pd_wave *= parameterized_distortion

stddev = np.std(pd_wave.phase - zern_wave.phase)

assert stddev < 1e-16, ("ParameterizedAberration disagrees with "
"ZernikeAberration! stddev {}".format(stddev))
np.testing.assert_allclose(pd_wave.phase, zern_wave.phase,
err_msg="ParameterizedAberration disagrees with ZernikeAberration")

0 comments on commit 9de2d41

Please sign in to comment.