From 93fb86a5dc8d2617d452d3a8eff8390dd2b7cfac Mon Sep 17 00:00:00 2001 From: Steven Rosenthal Date: Tue, 4 Feb 2025 01:04:50 -0800 Subject: [PATCH] tweak ordering in _find_centroid_matches() --- tetra3/tetra3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetra3/tetra3.py b/tetra3/tetra3.py index a3c4147..3abafb3 100644 --- a/tetra3/tetra3.py +++ b/tetra3/tetra3.py @@ -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):