Skip to content

Commit 8717c1d

Browse files
committed
let's not use random in tests
1 parent 8b401ba commit 8717c1d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_interpolate.nim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import unittest, math, sequtils, random
1+
import unittest, math, sequtils
22
import numericalnim
33
import arraymancer
44

@@ -412,8 +412,7 @@ test "Trilinear f = x*y*z T: Tensor[float]":
412412
check abs(spline.eval(i, j, k)[2] - 1) < 1e-16
413413

414414
test "rbf f=x*y*z":
415-
randomize(1337)
416-
let pos = randomTensor[float](100, 3, 1.0)
415+
let pos = meshgrid(arraymancer.linspace(0.0, 1.0, 5), arraymancer.linspace(0.0, 1.0, 5), arraymancer.linspace(0.0, 1.0, 5))
417416
let vals = pos[_, 0] *. pos[_, 1] *. pos[_, 2]
418417
let rbfObj = newRbf(pos, vals)
419418

0 commit comments

Comments
 (0)