def test_poses4_all_pairs(self): target_path = 1.0 tol = 0.2 id_pairs = filters.filter_pairs_by_distance(poses_4, target_path, tol, all_pairs=True) self.assertEqual(id_pairs, [(0, 1), (0, 2), (0, 3)])
def test_poses1_wrong_target(self): target_path = 2.5 tol = 0.0 id_pairs = filters.filter_pairs_by_distance(poses_1, target_path, tol, all_pairs=True) self.assertEqual(id_pairs, [])
def test_poses2_all_pairs_low_tolerance(self): target_path = 1.0 tol = 0.001 id_pairs = filters.filter_pairs_by_distance(poses_2, target_path, tol, all_pairs=True) self.assertEqual(id_pairs, [(0, 3)])
def test_poses1_all_pairs(self): target_path = 1.0 tol = 0.0 id_pairs = filters.filter_pairs_by_distance(poses_1, target_path, tol, all_pairs=True) self.assertEqual(id_pairs, [(0, 3), (2, 3)])