Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pierre Fernbach
hpp-spline
Commits
af5fcda7
Commit
af5fcda7
authored
Feb 27, 2019
by
Guilhem Saurel
Browse files
[Python][Test] fix tolerance
parent
9ddb2d4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/test/test.py
View file @
af5fcda7
...
...
@@ -37,7 +37,7 @@ class TestSpline(unittest.TestCase):
prim
=
a
.
compute_primitive
(
2
)
for
i
in
range
(
10
):
t
=
float
(
i
)
/
10.
assert_allclose
(
a
(
t
),
prim
.
derivate
(
t
,
2
))
assert_allclose
(
a
(
t
),
prim
.
derivate
(
t
,
2
)
,
atol
=
1e-20
)
assert_allclose
(
prim
(
0
),
matrix
([
0.
,
0.
,
0.
]).
T
)
waypoints
=
matrix
([[
1.
,
2.
,
3.
],
[
4.
,
5.
,
6.
],
[
4.
,
5.
,
6.
],
[
4.
,
5.
,
6.
],
[
4.
,
5.
,
6.
]]).
T
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment