Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang314 committed Aug 9, 2024
1 parent 4b7c7ee commit 36895cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_LensModel/test_Profiles/test_nfw_ellipse_cse.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def test_derivatives(self):
npt.assert_almost_equal(f_x_cse_low / f_x_nfw, 1, decimal=2)
npt.assert_almost_equal(f_y_cse_low, f_y_nfw, decimal=2)

x, y = 2
x = 2
y = 2
f_x_nfw, f_y_nfw = self.nfw.derivatives(x, y, **kwargs)
f_x_cse, f_y_cse = self.nfw_cse.derivatives(x, y, e1=0, e2=0, **kwargs)
npt.assert_almost_equal(f_x_cse, f_x_nfw, decimal=5)
Expand Down

0 comments on commit 36895cc

Please sign in to comment.