553b08f520d1cbf0b1c6adbbae34a7c1536b092c,pyntcloud/structures/voxelgrid.py,VoxelGrid,__init__,#VoxelGrid#Any#Any#Any#Any#,18

Before Change


        
        if sizes is not None:
            // adjust to obtain sides divisible by size
            margins = (((points.ptp(0) // sizes) + 1) * sizes) - points.ptp(0)
            xyzmin -= margins / 2
            xyzmax += margins / 2
            x_y_z = ((xyzmax - xyzmin) / sizes).astype(int) 

        self.xyzmin = xyzmin
        self.xyzmax = xyzmax

After Change


            for n, size in enumerate(sizes):
                if size is None:
                    continue
                margin = (((points.ptp(0)[n] // size) + 1) * size) - points.ptp(0)[n]
                xyzmin[n] -= margin / 2
                xyzmax[n] += margin / 2
                x_y_z[n] = ((xyzmax[n] - xyzmin[n]) / size).astype(int) 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: daavoo/pyntcloud
Commit Name: 553b08f520d1cbf0b1c6adbbae34a7c1536b092c
Time: 2017-04-08
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/structures/voxelgrid.py
Class Name: VoxelGrid
Method Name: __init__


Project Name: luispedro/mahotas
Commit Name: c373443004a07c860002a6878cfda92d92809d04
Time: 2010-08-12
Author: lpc@cmu.edu
File Name: mahotas/edge.py
Class Name:
Method Name: sobel


Project Name: scipy/scipy
Commit Name: af6f52cd3cee8ade0c4a78d6ef254279c0af111a
Time: 2017-01-31
Author: perimosocordiae@gmail.com
File Name: scipy/spatial/_plotutils.py
Class Name:
Method Name: _adjust_bounds