Skip to content

Commit

Permalink
TST: interpolate: bump test tolerance in TestInterpN
Browse files Browse the repository at this point in the history
A small tolerance violation reported on conda-forge
in scipy#20472
  • Loading branch information
ev-br committed Apr 14, 2024
1 parent e2d3153 commit ca71394
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scipy/interpolate/tests/test_rgi.py
Expand Up @@ -983,7 +983,11 @@ def test_matrix_input(self, method):

v1 = interpn((x, y), values, sample, method=method)
v2 = interpn((x, y), np.asarray(values), sample, method=method)
assert_allclose(v1, v2)
if method == "quintic":
# https://github.com/scipy/scipy/issues/20472
assert_allclose(v1, v2, atol=5e-5, rtol=2e-6)
else:
assert_allclose(v1, v2)

def test_length_one_axis(self):
# gh-5890, gh-9524 : length-1 axis is legal for method='linear'.
Expand Down

0 comments on commit ca71394

Please sign in to comment.