Skip to content

Commit

Permalink
tweak ordering in _find_centroid_matches()
Browse files Browse the repository at this point in the history
  • Loading branch information
smroid committed Feb 4, 2025
1 parent d9b4d84 commit 93fb86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetra3/tetra3.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def _find_centroid_matches(image_centroids, catalog_centroids, r):
dists = cdist(image_centroids, catalog_centroids)
matches = np.argwhere(dists < r)
# Make sure we only have unique 1-1 matches
matches = matches[np.unique(matches[:, 0], return_index=True)[1], :]
matches = matches[np.unique(matches[:, 1], return_index=True)[1], :]
matches = matches[np.unique(matches[:, 0], return_index=True)[1], :]
return matches

def _angle_from_distance(dist):
Expand Down

0 comments on commit 93fb86a

Please sign in to comment.