b6106d3044f7800af8710cbdc998ed78f7e6588c,pyntcloud/structures/octree.py,Octree,get_level_as_sf,#Octree#Any#,49

Before Change


        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)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: QUANTAXIS/QUANTAXIS
Commit Name: 9bc9d451cdbc5319c6af12eed0345970cb843dbe
Time: 2018-10-05
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAPortfolio.py
Class Name: QA_PortfolioView
Method Name: daily_cash


Project Name: soft-matter/trackpy
Commit Name: dbeab7509cfec1314b6529d57fbd090ce744695c
Time: 2017-07-27
Author: caspervdw@gmail.com
File Name: trackpy/motion.py
Class Name:
Method Name: compute_drift