Skip to content

Commit

Permalink
Fix get_maximum_dt test
Browse files Browse the repository at this point in the history
It's result has to be converted to magnitude to be used in the test.
  • Loading branch information
tfarago committed Aug 3, 2018
1 parent b95e76a commit 98e7233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syris/tests/test_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 98e7233

Please sign in to comment.