From 98e72333a8d9f6f59e022d97efcb4e41e1d8090e Mon Sep 17 00:00:00 2001 From: Tomas Farago Date: Fri, 3 Aug 2018 17:26:04 +0200 Subject: [PATCH] Fix get_maximum_dt test It's result has to be converted to magnitude to be used in the test. --- syris/tests/test_trajectory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syris/tests/test_trajectory.py b/syris/tests/test_trajectory.py index 7f64749..9bad94c 100644 --- a/syris/tests/test_trajectory.py +++ b/syris/tests/test_trajectory.py @@ -250,7 +250,7 @@ def test_get_maximum_dt(self): # Moving trajectory tr, dtck, ps, times = create_maxima_testing_data() - max_dt = tr.get_maximum_dt(distance=ps) + max_dt = tr.get_maximum_dt(distance=ps).simplified.magnitude # Make sure we are actually making too large steps with the original interpolation assert max_dt < np.max(np.gradient(tr.times.simplified.magnitude)) times = np.arange(times[0].simplified.magnitude, times[-1].simplified.magnitude, max_dt)