Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
ndcurves
Commits
d740879b
Commit
d740879b
authored
Feb 10, 2020
by
Pierre Fernbach
Browse files
[Tests][Python] fix mistake in test_piecewise_from_points_list about time definition
parent
1b088fce
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/test/test.py
View file @
d740879b
...
...
@@ -422,7 +422,8 @@ class TestCurves(unittest.TestCase):
self
.
assertEqual
(
c0
.
min
(),
time_points
[
0
])
self
.
assertEqual
(
c0
.
max
(),
time_points
[
1
])
self
.
assertEqual
(
c0
.
dim
(),
3
)
self
.
assertTrue
(
array_equal
(
polC0
(
0.5
),
c0
(
0.5
)))
mid_t
=
(
c0
.
max
()
+
c0
.
min
())
/
2.
self
.
assertTrue
(
array_equal
(
polC0
(
mid_t
),
c0
(
mid_t
)))
polC1
=
piecewise
.
FromPointsList
(
points
,
points_derivative
,
time_points
)
self
.
assertEqual
(
polC1
.
min
(),
time_points
[
0
,
0
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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