From 0ae120c8134f74c583a96aecd4e4fca9e0b04361 Mon Sep 17 00:00:00 2001 From: wbwallace Date: Tue, 24 Dec 2019 08:29:53 -0800 Subject: [PATCH] Update finiteT.py factorial has moved from scipy.misc to scipy.special --- cosmoTransitions/finiteT.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cosmoTransitions/finiteT.py b/cosmoTransitions/finiteT.py index 10f475b..9988fb3 100644 --- a/cosmoTransitions/finiteT.py +++ b/cosmoTransitions/finiteT.py @@ -22,7 +22,10 @@ import numpy from scipy import integrate, interpolate from scipy import special -from scipy.misc import factorial as fac +try: + from scipy.misc import factorial as fac +except ImportError: + from scipy.special import factorial as fac pi = numpy.pi euler_gamma = 0.577215661901532