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