Skip to content

Commit 5f47a8b

Browse files
authored
loosen up rtol to avoid false errors
1 parent 3a5c55f commit 5f47a8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_odr_fit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def test_jacobians(example5):
546546
for diff_scheme in ['forward', 'central']:
547547
sol = odr_fit(f, xdata, ydata, beta0, bounds=bounds,
548548
diff_scheme=diff_scheme)
549-
assert np.allclose(sol.beta, beta_ref, rtol=1e-6)
549+
assert np.allclose(sol.beta, beta_ref, rtol=1e-5)
550550
assert np.allclose(sol.delta, delta_ref, rtol=1e-5)
551551

552552
# ODR with jacobian
@@ -643,7 +643,7 @@ def test_compare_scipy(case1, case2, case3):
643643
case['beta0'], case['ydata'], case['xdata'],
644644
wd=wd, we=we, full_output=True)
645645

646-
assert np.allclose(sol1.beta, sol2[0], rtol=1e-5)
646+
assert np.allclose(sol1.beta, sol2[0], rtol=1e-4)
647647

648648
assert np.all(np.max(we*abs(sol1.eps - sol2[3]['eps']), -1) /
649649
(np.max(case['ydata'], -1) - np.min(case['ydata'], -1)) < 1e-5)

0 commit comments

Comments
 (0)