diff --git a/zoidberg/rzline.py b/zoidberg/rzline.py index 6a6a1f1..f01bdba 100644 --- a/zoidberg/rzline.py +++ b/zoidberg/rzline.py @@ -8,7 +8,13 @@ import numpy as np from numpy import append, argmin, cos, linspace, pi, sin, sqrt -from scipy.integrate import cumtrapz + +try: + # New scipy changed the name + from scipy.integrate import cumulative_trapezoid as cumtrapz +except ImportError: + from scipy.integrate import cumtrapz + from scipy.interpolate import interp1d, splev, splrep try: