From de670f8bcb5bac11d60bc74e5bde8e4e9d8557d9 Mon Sep 17 00:00:00 2001 From: Martin Bubel Date: Tue, 10 Oct 2023 19:50:44 +0200 Subject: [PATCH] migrate quadrature_tests to pytest --- GPy/testing/quadrature_tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GPy/testing/quadrature_tests.py b/GPy/testing/quadrature_tests.py index f6b361e9..5690edfb 100644 --- a/GPy/testing/quadrature_tests.py +++ b/GPy/testing/quadrature_tests.py @@ -3,16 +3,13 @@ import numpy as np from ..util.quad_integrate import quadgk_int, quadvgk -class QuadTests(np.testing.TestCase): +class TestQuad: """ test file for checking implementation of gaussian-kronrod quadrature. we will take a function which can be integrated analytically and check if quadgk result is similar or not! through this file we can test how numerically accurate quadrature implementation in native numpy or manual code is. """ - def setUp(self): - pass - def test_infinite_quad(self): def f(x): return np.exp(-0.5 * x**2) * np.power(x, np.arange(3)[:, None])