Skip to content

Commit 06b5cd7

Browse files
committed
clean up test
1 parent 138b777 commit 06b5cd7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/interpolations.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,3 @@ f((x1, x2)) = log(x1+x2)
55
A = f.(DimPoints((X(1:.1:10), Y(1:.5:20))))
66
to = rand(X(2:.3:7), Y(2:.3:17))
77
out = DimensionalData.interp(A; to)
8-
9-
A_x1 = 1:.1:10
10-
A_x2 = 1:.5:20
11-
f(x1, x2) = log(x1+x2)
12-
A = [f(x1,x2) for x1 in A_x1, x2 in A_x2]
13-
itp = interpolate(A, BSpline(Cubic(Line(OnGrid()))))
14-
sitp = scale(itp, A_x1, A_x2)
15-
sitp(5., 10.) # exactly log(5 + 10)
16-
sitp([5.6, 5.2], [7.1, 7.1]) # approximately log(5.6 + 7.1)

0 commit comments

Comments
 (0)