coords.Coords.has_match#

Coords.has_match(coords, **kargs)#

Find out which points are also in another Coords object.

Find the points from self that coincide with (or are very close to) some point of coords. This method is very similar to match(), but does not give information about which point of self matches which point of coords.

Parameters#

coords: Coords

The Coords object to compare the points with.

**kargs: keyword arguments

Keyword arguments passed to the fuse() method.

Returns#

int array

A 1-dim int array with the unique sorted indices of the points in self that have a (nearly) matching point in coords.

See also#

Examples#

>>> X = Coords([[1.],[2.],[3.],[1.]])
>>> Y = Coords([[1.],[4.],[2.00001]])
>>> print(X.has_match(Y))
[0 1 3]
>>> print(Y.has_match(X))
[0 2]