Commit f410b2de authored by Carl-Johan Haster's avatar Carl-Johan Haster

change ext from raise to 2

parent 693a543f
Pipeline #80509 passed with stages
in 100 minutes and 58 seconds
......@@ -6950,7 +6950,7 @@ def plot_spline_pos(logf, ys, nf=100, level=0.9, color='k', label=None, xform=No
try:
temp = interpolate.spline(logf, samp, np.log(fs))
except AttributeError: # scipy < 0.19.0
calSpline = interpolate.InterpolatedUnivariateSpline(logf, samp, k=3, ext=raise) #cubic spline (k=3), raises error in extrapolation
calSpline = interpolate.InterpolatedUnivariateSpline(logf, samp, k=3, ext=2) #cubic spline (k=3), raises ValueError in extrapolation
temp = calSpline(np.log(fs))
if xform is None:
data[i] = temp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment