From 526051c99e901a360a08bd215b7f0deb1181ed56 Mon Sep 17 00:00:00 2001 From: Jamie Townsend Date: Thu, 16 Nov 2023 09:38:13 +0100 Subject: [PATCH] Revert unnecessary changes to test_scipy.py --- tests/test_scipy.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/test_scipy.py b/tests/test_scipy.py index da5dc95d..11acba7f 100644 --- a/tests/test_scipy.py +++ b/tests/test_scipy.py @@ -10,7 +10,6 @@ warn('Skipping scipy tests.') else: import autograd.numpy as np - import autograd.numpy.linalg as npla import autograd.numpy.random as npr import autograd.scipy.signal import autograd.scipy.stats as stats @@ -190,12 +189,12 @@ def test_polygamma(): combo_check(special.polygamma, [1])([0], R(4)**2 + 1.3) def test_jn(): combo_check(special.jn, [1])([2], R(4)**2 + 1.3) def test_yn(): combo_check(special.yn, [1])([2], R(4)**2 + 1.3) - def test_psi(): unary_ufunc_check(special.psi, lims=[0.3, 2.0], test_complex=False) - def test_digamma(): unary_ufunc_check(special.digamma, lims=[0.3, 2.0], test_complex=False) - def test_gamma(): unary_ufunc_check(special.gamma, lims=[0.3, 2.0], test_complex=False) - def test_gammaln(): unary_ufunc_check(special.gammaln, lims=[0.3, 2.0], test_complex=False) - def test_gammasgn(): unary_ufunc_check(special.gammasgn, lims=[0.3, 2.0], test_complex=False) - def test_rgamma(): unary_ufunc_check(special.rgamma, lims=[0.3, 2.0], test_complex=False) + def test_psi(): unary_ufunc_check(special.psi, lims=[0.3, 2.0], test_complex=False) + def test_digamma(): unary_ufunc_check(special.digamma, lims=[0.3, 2.0], test_complex=False) + def test_gamma(): unary_ufunc_check(special.gamma, lims=[0.3, 2.0], test_complex=False) + def test_gammaln(): unary_ufunc_check(special.gammaln, lims=[0.3, 2.0], test_complex=False) + def test_gammasgn(): unary_ufunc_check(special.gammasgn,lims=[0.3, 2.0], test_complex=False) + def test_rgamma() : unary_ufunc_check(special.rgamma, lims=[0.3, 2.0], test_complex=False) def test_multigammaln(): combo_check(special.multigammaln, [0])([U(4., 5.), U(4., 5., (2,3))], [1, 2, 3])