From 581bf500f7945920d8cb2a307e22194b7f696c99 Mon Sep 17 00:00:00 2001 From: Sudipta Basak Date: Tue, 26 Jul 2016 15:11:57 +1000 Subject: [PATCH] scipy v18 fix --- pyrate/tests/test_prepifg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrate/tests/test_prepifg.py b/pyrate/tests/test_prepifg.py index eb3f1d98f..772ec6db6 100644 --- a/pyrate/tests/test_prepifg.py +++ b/pyrate/tests/test_prepifg.py @@ -11,7 +11,10 @@ import tempfile from math import floor import numpy as np -from scipy.stats.stats import nanmean +try: + from scipy.stats.stats import nanmean +except: # fix for scipy v0.18.0 + from scipy import nanmean from numpy import isnan, nanmax, nanmin from numpy import ones, nan, reshape, sum as npsum from numpy.testing import assert_array_almost_equal, assert_array_equal