From 0a48287671417606ae123e6cdd9d2afa76aeb9a7 Mon Sep 17 00:00:00 2001 From: Olivier Verdier Date: Sat, 31 Dec 2016 09:05:50 +0100 Subject: [PATCH] better on_manifold test --- tests/test_interpolator.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_interpolator.py b/tests/test_interpolator.py index 0a02aa3..57a64f0 100644 --- a/tests/test_interpolator.py +++ b/tests/test_interpolator.py @@ -99,9 +99,10 @@ def projected(t): assert errs[1,imax] <= err def test_on_manifold(interpolator, N=40): - max = len(interpolator['points']) - 1 - ts = max*np.random.rand(N) - pts = interpolator['Rspline'](ts) + """ + Test that the control points are on the manifold. + """ + pts = interpolator['Rspline'].control_points npt.assert_allclose(*interpolator['geometry'].on_manifold(pts), atol=1e-13)