Skip to content

Commit

Permalink
fix bug removing multiple isolated points from trace
Browse files Browse the repository at this point in the history
  • Loading branch information
SVivdich02 committed Jan 21, 2024
1 parent 60fc68d commit e80f3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/distances_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def remove_isolated_points(dist, points, trace):
]

trace_copy = copy.deepcopy(trace)
for index in isolated_points:
for index in sorted(isolated_points, reverse=True):
del trace_copy[index]

mask_not_isolated = np.any(dist - np.eye(dist.shape[0]) != 0, axis=1)
Expand Down

0 comments on commit e80f3af

Please sign in to comment.