Skip to content

Commit

Permalink
tune atol/rtol
Browse files Browse the repository at this point in the history
  • Loading branch information
espdev committed Jul 19, 2020
1 parent dc7f7e6 commit e088e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_ndg.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ def test_evaluate_nu_extrapolate(nu: tuple, extrapolate: bool):
xx = tuple(np.meshgrid(*xi, indexing='ij'))
y_pp = pp(xx, nu=nu, extrapolate=extrapolate)

np.testing.assert_allclose(y_ss, y_pp, equal_nan=True)
np.testing.assert_allclose(y_ss, y_pp, rtol=1e-05, atol=1e-08, equal_nan=True)
2 changes: 1 addition & 1 deletion tests/test_umv.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,4 @@ def test_evaluate_nu_extrapolate(nu, extrapolate):
ss = csaps.CubicSmoothingSpline(x, y, smooth=1.0)
y_ss = ss(xi, nu=nu, extrapolate=extrapolate)

np.testing.assert_allclose(y_ss, y_cs, equal_nan=True)
np.testing.assert_allclose(y_ss, y_cs, rtol=1e-05, atol=1e-08, equal_nan=True)

0 comments on commit e088e3f

Please sign in to comment.