42be11c7824427fb0a8490f3bcd635410ded57b3,trackpy/linking/find_link.py,FindLinker,get_relocate_candidates,#FindLinker#Any#,363

Before Change



        // drop points that are further than search range from any initial point
        max_dist = np.atleast_2d(self.search_range)
        kdtree = cKDTree(coords / max_dist, 30)
        found = kdtree.query_ball_point((pos - origin) / max_dist, 1.)
        if len(found) > 0:
            coords = coords[list(set([i for sl in found for i in sl]))]
        else:

After Change


            dists = np.sqrt(np.sum((coord_rescaled - pos_rescaled)**2, axis=1))
            if np.any(dists <= self.search_range):
                coords_ok.append(coord)
        if len(coords_ok) == 0:
            return None, None
        coords = np.array(coords_ok)

        // drop dimmer points that are closer than separation to each other
        coords = drop_close(coords, self.separation,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: soft-matter/trackpy
Commit Name: 42be11c7824427fb0a8490f3bcd635410ded57b3
Time: 2017-07-27
Author: caspervdw@gmail.com
File Name: trackpy/linking/find_link.py
Class Name: FindLinker
Method Name: get_relocate_candidates


Project Name: scikit-image/scikit-image
Commit Name: 08250ae50815b32f868041bc56a6e5a3eca4ef83
Time: 2019-12-17
Author: xwu@enthought.com
File Name: skimage/transform/hough_transform.py
Class Name:
Method Name: hough_circle_peaks


Project Name: soft-matter/trackpy
Commit Name: 595b03eef21acae015342042bca7288bb9336463
Time: 2014-11-10
Author: daniel.b.allan@gmail.com
File Name: trackpy/motion.py
Class Name:
Method Name: proximity