@@ -20,7 +20,7 @@ YLEN = convert(Integer, floor((YMAX - YMIN)/ΔY) + 1)
2020 f (x) = log (x)
2121 A = [f (x) for x in xs]
2222 interp = LinearInterpolation (xs, A) # using convenience constructor
23- interp_full = extrapolate (scale (interpolate (A, BSpline (Linear ()), OnGrid ()) , xs), Interpolations . Throw ()) # using full constructor
23+ interp_full = extrapolate (scale (interpolate (A, BSpline (Linear ())) , xs), Throw ()) # using full constructor
2424
2525 @test typeof (interp) == typeof (interp_full)
2626 @test interp (XMIN) ≈ f (XMIN)
@@ -37,7 +37,7 @@ YLEN = convert(Integer, floor((YMAX - YMIN)/ΔY) + 1)
3737 f (x) = log (x)
3838 A = [f (x) for x in xs]
3939 interp = CubicSplineInterpolation (xs, A)
40- interp_full = extrapolate (scale (interpolate (A, BSpline (Cubic (Line ())), OnGrid ( )), xs), Interpolations . Throw ())
40+ interp_full = extrapolate (scale (interpolate (A, BSpline (Cubic (Line (OnGrid ( ))))), xs), Throw ())
4141
4242 @test typeof (interp) == typeof (interp_full)
4343 @test interp (XMIN) ≈ f (XMIN)
@@ -56,7 +56,7 @@ YLEN = convert(Integer, floor((YMAX - YMIN)/ΔY) + 1)
5656 f (x) = log (x)
5757 A = [f (x) for x in xs]
5858 interp = LinearInterpolation (xs, A)
59- interp_full = extrapolate (interpolate ((xs, ), A, Gridded (Linear ())), Interpolations . Throw ())
59+ interp_full = extrapolate (interpolate ((xs, ), A, Gridded (Linear ())), Throw ())
6060
6161 @test typeof (interp) == typeof (interp_full)
6262 @test interp (xmin) ≈ f (xmin)
@@ -76,8 +76,8 @@ YLEN = convert(Integer, floor((YMAX - YMIN)/ΔY) + 1)
7676 x_lower = XMIN - ΔX
7777 x_higher = XMAX + ΔX
7878
79- extrap = LinearInterpolation (xs, A, extrapolation_bc = Interpolations . Linear ())
80- extrap_full = extrapolate (scale (interpolate (A, BSpline (Linear ()), OnGrid ()) , xs), Interpolations . Linear ())
79+ extrap = LinearInterpolation (xs, A, extrapolation_bc = Line ())
80+ extrap_full = extrapolate (scale (interpolate (A, BSpline (Linear ())) , xs), Line ())
8181
8282 @test typeof (extrap) == typeof (extrap_full)
8383 @test extrap (x_lower) ≈ A[1 ] - ΔA_l
9292 f (x, y) = log (x+ y)
9393 A = [f (x,y) for x in xs, y in ys]
9494 interp = LinearInterpolation ((xs, ys), A)
95- interp_full = extrapolate (scale (interpolate (A, BSpline (Linear ()), OnGrid ()) , xs, ys), Interpolations . Throw ())
95+ interp_full = extrapolate (scale (interpolate (A, BSpline (Linear ())) , xs, ys), Throw ())
9696
9797 @test typeof (interp) == typeof (interp_full)
9898 @test interp (XMIN,YMIN) ≈ f (XMIN,YMIN)
115115 f (x, y) = log (x+ y)
116116 A = [f (x,y) for x in xs, y in ys]
117117 interp = CubicSplineInterpolation ((xs, ys), A)
118- interp_full = extrapolate (scale (interpolate (A, BSpline (Cubic (Line ())), OnGrid ( )), xs, ys), Interpolations . Throw ())
118+ interp_full = extrapolate (scale (interpolate (A, BSpline (Cubic (Line (OnGrid ( ))))), xs, ys), Throw ())
119119
120120 @test typeof (interp) == typeof (interp_full)
121121 @test interp (XMIN,YMIN) ≈ f (XMIN,YMIN)
142142 f (x, y) = log (x+ y)
143143 A = [f (x,y) for x in xs, y in ys]
144144 interp = LinearInterpolation ((xs, ys), A)
145- interp_full = extrapolate (interpolate ((xs, ys), A, Gridded (Linear ())), Interpolations . Throw ())
145+ interp_full = extrapolate (interpolate ((xs, ys), A, Gridded (Linear ())), Throw ())
146146
147147 @test typeof (interp) == typeof (interp_full)
148148 @test interp (xmin,ymin) ≈ f (xmin,ymin)
171171 y_lower = YMIN - ΔY
172172 y_higher = YMAX + ΔY
173173
174- extrap = LinearInterpolation ((xs, ys), A, extrapolation_bc = (Interpolations . Linear (), Interpolations . Flat ()))
175- extrap_full = extrapolate (scale (interpolate (A, BSpline (Linear ()), OnGrid ()) , xs, ys), (Interpolations . Linear (), Interpolations . Flat ()))
174+ extrap = LinearInterpolation ((xs, ys), A, extrapolation_bc = (Line (), Flat ()))
175+ extrap_full = extrapolate (scale (interpolate (A, BSpline (Linear ())) , xs, ys), (Line (), Flat ()))
176176
177177 @test typeof (extrap) == typeof (extrap_full)
178178 @test extrap (x_lower, y_lower) ≈ A[1 , 1 ] - ΔA_l
0 commit comments