From 0f94b3798d521a14f008f068fe8e08baf3c7502b Mon Sep 17 00:00:00 2001 From: Zachary Morrow Date: Wed, 20 Mar 2024 20:30:41 -0400 Subject: [PATCH] tighten optimization criteria --- pyapprox/sciml/tests/test_integral_operators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyapprox/sciml/tests/test_integral_operators.py b/pyapprox/sciml/tests/test_integral_operators.py index b0016c0f..8e168f47 100644 --- a/pyapprox/sciml/tests/test_integral_operators.py +++ b/pyapprox/sciml/tests/test_integral_operators.py @@ -83,11 +83,12 @@ def test_chebyshev_convolution_operator_1d(self): [IdentityActivation()]) training_samples = u[:, None] training_values = u_tconv_v[:, None] - ctn.fit(training_samples, training_values, tol=1e-10) + ctn.fit(training_samples, training_values, tol=1e-12) tol = 4e-4 relerr = (tw.norm(fct.fct(v)[:kmax+1] - ctn._hyp_list.get_values()) / tw.norm(fct.fct(v)[:kmax+1])) + print(relerr) assert relerr < tol, f'Relative error = {relerr:.2e} > {tol:.2e}' def test_chebyshev_convolution_operator_multidim(self):