Skip to content

Commit

Permalink
better on_manifold test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierverdier committed Dec 31, 2016
1 parent ba25c45 commit 0a48287
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_interpolator.py
Expand Up @@ -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)


0 comments on commit 0a48287

Please sign in to comment.