diff --git a/python/gtsam/tests/test_DsfTrackGenerator.py b/python/gtsam/tests/test_DsfTrackGenerator.py index f50e74d8f..5e579bb32 100644 --- a/python/gtsam/tests/test_DsfTrackGenerator.py +++ b/python/gtsam/tests/test_DsfTrackGenerator.py @@ -29,8 +29,8 @@ class TestDsfTrackGenerator(GtsamTestCase): # For each image pair (i1,i2), we provide a (K,2) matrix # of corresponding keypoint indices (k1,k2). + matches_dict = {} for (i1,i2), corr_idxs in nontransitive_matches_dict.items(): - matches_dict = {} matches_dict[IndexPair(i1, i2)] = corr_idxs tracks = gtsam.gtsfm.tracksFromPairwiseMatches( @@ -165,7 +165,6 @@ def get_dummy_keypoints_list() -> List[Keypoints]: return keypoints_list - def get_nontransitive_matches() -> Dict[Tuple[int, int], np.ndarray]: """Set up correspondences for each (i1,i2) pair that violates transitivity.