a2f318363a1c4dde386d7f7ac316baa706678b89,pyntcloud/pyntcloud.py,PyntCloud,get_sample,#PyntCloud#,333

Before Change


            return S_MESH[name](**valid_args)
        
        elif name in S_VOXELGRID:
            kwargs["voxelgrid"] = self.voxelgrids[kwargs["voxelgrid"]]
            valid_args = crosscheck_kwargs_function(kwargs, S_VOXELGRID[name])
            return S_VOXELGRID[name](**valid_args)
        

After Change


                    Number of points to be sampled.                      

        
        if name in ALL_SAMPLING:
            S = ALL_SAMPLING[name](self, **kwargs)
            S.extract_info()
            return S.compute()

        else:
            raise ValueError("Unsupported sampling. Check docstring") 
            
    def get_neighbors(self, k=None, r=None, kdtree=None):
         For each point finds the indices that compose it"s neighbourhood.

        Parameters
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: daavoo/pyntcloud
Commit Name: a2f318363a1c4dde386d7f7ac316baa706678b89
Time: 2017-03-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: get_sample


Project Name: cve-search/cve-search
Commit Name: 10f98f742e47df11d47aa746699a009b6c6cb85b
Time: 2013-04-01
Author: a@foo.be
File Name: search_fulltext.py
Class Name:
Method Name:


Project Name: mozilla/mozregression
Commit Name: 6ac8b6b0fddb6784ea7674f5772e384faba70905
Time: 2015-03-28
Author: j.parkouss@gmail.com
File Name: gui/mozregui/bisection.py
Class Name: BisectRunner
Method Name: bisect


Project Name: daavoo/pyntcloud
Commit Name: f9b3bc145e981a05dd27abc8f2987692bf4d3b5c
Time: 2017-03-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: get_filter