Skip to content

Commit

Permalink
Fix distance calculation in testPoints function to include x_dist
Browse files Browse the repository at this point in the history
  • Loading branch information
dvida committed Dec 22, 2024
1 parent f8cb635 commit e87c808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RMS/Routines/Grouping3Dcy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def testPoints(int gap_threshold, np.ndarray[UINT16_TYPE_t, ndim=1] pointsy, \
z_dist = pointsz[i] - z_prev
y_dist = pointsy[i] - y_prev

distance = y_dist**2 + z_dist**2 + z_dist**2
distance = x_dist**2 + y_dist**2 + z_dist**2

# Count the point if there is no gap from the previous point
if(distance < gap_threshold):
Expand Down

0 comments on commit e87c808

Please sign in to comment.