Skip to content

Commit

Permalink
Fixes import error from recent scipy upgrade (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
MJKirk authored Jul 14, 2020
1 parent 7e73035 commit b91383c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flavio/math/integrate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import scipy
import numpy as np
import warnings
from scipy.integrate.quadrature import AccuracyWarning
try:
from scipy.integrate import AccuracyWarning # scipy >= 1.5.0
except ImportError:
from scipy.integrate.quadrature import AccuracyWarning # scipy <= 1.4.1

def nintegrate(f, a, b, epsrel=0.005, **kwargs):
with warnings.catch_warnings():
Expand Down

0 comments on commit b91383c

Please sign in to comment.