6f6513963c3f568e5ad985a17a4aee0192223935,scipy/spatial/_spherical_voronoi.py,SphericalVoronoi,_calc_vertices_regions,#SphericalVoronoi#,244

Before Change



        // array_associations will have shape: (6N-12, 2)
        array_associations = np.dstack((point_indices, tri_indices))[0]
        array_associations = array_associations[np.lexsort((
                                                array_associations[...,1],
                                                array_associations[...,0]))]
        array_associations = array_associations.astype(np.intp)

        // group by generator indices to produce

After Change


        // flattened_groups will have shape: (6N-12,)
        flattened_groups = tri_indices[indices].astype(np.intp)
        // intervals will have shape: (N+1,)
        intervals = np.cumsum(np.bincount(point_indices + 1))

        // split flattened groups to get nested list of unsorted regions
        groups = [list(flattened_groups[intervals[i]:intervals[i + 1]])
                  for i in range(len(intervals) - 1)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 6f6513963c3f568e5ad985a17a4aee0192223935
Time: 2019-07-17
Author: pete.mahler.larsen@gmail.com
File Name: scipy/spatial/_spherical_voronoi.py
Class Name: SphericalVoronoi
Method Name: _calc_vertices_regions


Project Name: ilastik/ilastik
Commit Name: d86667df5eff9b2d6059eea26b2bb54cca16c3df
Time: 2015-08-27
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingImport.py
Class Name:
Method Name: import_labeling_layer


Project Name: scipy/scipy
Commit Name: 29ac3d4831a6967c4c4b5501fb25eb50d10915b4
Time: 2010-11-30
Author: warren.weckesser@localhost
File Name: scipy/ndimage/measurements.py
Class Name:
Method Name: _stats


Project Name: biolab/orange3
Commit Name: 4864636ee49d8d78192ef456e91c41747fa7d9fb
Time: 2012-09-29
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/classification/__init__.py
Class Name: Model
Method Name: __call__