Skip to content

Commit dee8fa1

Browse files
Philippe RerolePhilippe Rerole
authored andcommitted
Fixed bug in diff computation when comparing 3d points
1 parent 7f806ff commit dee8fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kapture/algo/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def equal_points3d(
617617
bool_array = np.isclose(points3d_a.as_array(), points3d_b.as_array())
618618
are_equal = bool_array.all()
619619
if not are_equal:
620-
diffs = [n for n, b in enumerate(bool_array) if not b]
620+
diffs = [n for n, b in enumerate(bool_array) if not b.all()]
621621
diffs = diffs[:15]
622622
diffs = ['element {} : {} != {}'.format(n, points3d_a[n], points3d_b[n]) for n in diffs]
623623
getLogger().debug('equal_points3d:\n{}'.format('\n'.join(diffs)))

0 commit comments

Comments
 (0)