From f84815d3d1de5be6bc012618033d1476e32c7ffd Mon Sep 17 00:00:00 2001 From: Raphael <raphael.sturgis@lis-lab.fr> Date: Thu, 10 Feb 2022 11:35:43 +0100 Subject: [PATCH] minor --- skais/tests/ais/test_ais_trajectory.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/skais/tests/ais/test_ais_trajectory.py b/skais/tests/ais/test_ais_trajectory.py index d8db97f..1ee2d6d 100644 --- a/skais/tests/ais/test_ais_trajectory.py +++ b/skais/tests/ais/test_ais_trajectory.py @@ -320,21 +320,3 @@ class TestAISTrajectory(unittest.TestCase): def test_apply_func_on_window(self): self.assertRaises(ValueError, apply_func_on_window,np.arange(10), 0, 0, 'not valid string') - - def test_shift_trajectory_to_coordinates_no_change(self): - trajectory = AISTrajectory( - pd.DataFrame( - { - "latitude": [0, 90, 0, -90], - "longitude": [0, 90, 180, -90], - "ts_sec": [i for i in range(4)] - } - ) - ) - - result = trajectory.shift_trajectory_to_coordinates(point_index=0) - - pd.testing.assert_frame_equal(trajectory.df.reset_index(drop=True), result.df.reset_index(drop=True)) - - def test_shift_trajectory_to_coordinates_change_1(self): - self.assertTrue(True) \ No newline at end of file -- GitLab