b6106d3044f7800af8710cbdc998ed78f7e6588c,pyntcloud/structures/octree.py,Octree,get_level_as_sf,#Octree#Any#,49
Before Change
def get_level_as_sf(self, level):
sf = np.arange(len(self.points))
st = pd.DataFrame(np.packbits(self.structure[:,:level*3], axis=1))
i = 0
for g in st.groupby([x for x in st.columns]).apply(lambda x: x.index.values).values:
sf[g] = i
i+=1
return sf
After Change
def get_level_as_sf(self, level):
sf = np.zeros((self.points.shape[0], level), dtype=str)
for k, v in self.structure.groupby([x for x in range(level)]).indices.items():
sf[v] = k
return [int("".join(sf[i])) for i in range(len(sf))]
def eigen_decomposition(self, level):
st = self.structure.loc[:, range(level)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: daavoo/pyntcloud
Commit Name: b6106d3044f7800af8710cbdc998ed78f7e6588c
Time: 2016-11-30
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/structures/octree.py
Class Name: Octree
Method Name: get_level_as_sf
Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: load_featureset
Project Name: has2k1/plotnine
Commit Name: 329dfcea129f72eb3ea741dfc343d4c28c513c69
Time: 2014-02-06
Author: jasc@gmx.net
File Name: ggplot/ggplot.py
Class Name: ggplot
Method Name: _get_layers