dcebafddabc5e2a396e62fb925f64aa175682e72,pyntcloud/samplers/voxelgrid.py,VoxelgridNearestSampler,compute,#VoxelgridNearestSampler#,41
Before Change
self.n = n
def compute(self):
df = pd.DataFrame(self.pyntcloud.xyz, columns=["x", "y", "z"])
df["voxel_n"] = self.voxelgrid.voxel_n
nearests = []
for voxel_n, x in df.groupby("voxel_n", sort=False):
xyz = x.loc[:, ["x", "y", "z"]].values
After Change
self.n = n
def compute(self):
voxel_n_id = "voxel_n({})".format(self.voxelgrid_id)
if voxel_n_id not in self.pyntcloud.points:
self.pyntcloud.points[voxel_n_id] = self.voxelgrid.voxel_n
nearests = []
for voxel_n, x in self.pyntcloud.points.groupby(voxel_n_id, sort=False):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: daavoo/pyntcloud
Commit Name: dcebafddabc5e2a396e62fb925f64aa175682e72
Time: 2018-06-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/samplers/voxelgrid.py
Class Name: VoxelgridNearestSampler
Method Name: compute
Project Name: luispedro/mahotas
Commit Name: 64624fb2b46a228fef1141e1ded84e52acccaf6e
Time: 2015-06-09
Author: luis@luispedro.org
File Name: bin/mahotas-features.py
Class Name:
Method Name: main
Project Name: AllenCellModeling/pytorch_fnet
Commit Name: cd6ea74225b7c29238de13229aa1347db4098fea
Time: 2018-01-29
Author: chek.o@outlook.com
File Name: train_model.py
Class Name:
Method Name: main