0cfadf14a343ae8749ddcb80e3a9eb3e32fd8de0,pyntcloud/core_class.py,PyntCloud,__init__,#PyntCloud#,31

Before Change


            elif "voxelgrids" in key:
                self.voxelgrids = kwargs[key]
            else:
                setattr(self, key, kwargs[key])
        // store raw values to share memory along structures
        self.xyz = self.points[["x", "y", "z"]].values
        self.centroid = self.xyz.mean(0)

After Change


        self.mesh = mesh
        self.structures = StructuresDict()
        for key, val in structures.items():
            self.structures[key] = val
        for key, val in kwargs.items():
            setattr(self, key, val)
        // store raw xyz values to share memory along structures
        self.xyz = self.points[["x", "y", "z"]].values
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: daavoo/pyntcloud
Commit Name: 0cfadf14a343ae8749ddcb80e3a9eb3e32fd8de0
Time: 2017-05-04
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/core_class.py
Class Name: PyntCloud
Method Name: __init__


Project Name: facebookresearch/pythia
Commit Name: 2f337387d6759627bae60284e7fa612268580724
Time: 2020-09-15
Author: vedanujg@gmail.com
File Name: mmf/models/mmf_transformer.py
Class Name: MMFTransformerEmbeddings
Method Name: init_weights


Project Name: matthewwithanm/django-imagekit
Commit Name: 84d36791b83d12acb09492285d6ecadcbbd9b3fc
Time: 2012-02-17
Author: matthew@exanimo.com
File Name: imagekit/models/fields/utils.py
Class Name: ImageSpecFileDescriptor
Method Name: __get__