e73418dbc43053ccb522e94e9846de1c88667b73,trunk/SUAVE/Components/Energy/Networks/Propulsor_Surrogate.py,Propulsor_Surrogate,build_surrogate,#Propulsor_Surrogate#,73

Before Change


        
        // Clean up to remove redundant lines
        // Section 1
        col1 = my_data[1:,:1]
        col2 = my_data[1:,1:2]
        col3 = my_data[1:,2:3]
        for ii in xrange(0, len(col1)-1):

After Change


            //if (col1[ii] == col1[ii+1])&(col2[ii] == col2[ii+1])&(col3[ii] == col3[ii+1]):
                //np.delete(my_data,(ii), axis=0)

        b = np.ascontiguousarray(my_data).view(np.dtype((np.void, my_data.dtype.itemsize * my_data.shape[1])))
        _, idx = np.unique(b, return_index=True)
        
        my_data = my_data[idx]                
                
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: suavecode/SUAVE
Commit Name: e73418dbc43053ccb522e94e9846de1c88667b73
Time: 2017-04-01
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Components/Energy/Networks/Propulsor_Surrogate.py
Class Name: Propulsor_Surrogate
Method Name: build_surrogate


Project Name: nipy/dipy
Commit Name: e35275a0004c33a6d87485408f0939c22a6995f2
Time: 2014-04-13
Author: garyfallidis@gmail.com
File Name: dipy/align/streamwarp.py
Class Name: StreamlineRigidRegistration
Method Name: optimize


Project Name: luispedro/mahotas
Commit Name: 221f2e9dce1ce5828f307909fd6da6cd9452f17c
Time: 2012-08-23
Author: luis@luispedro.org
File Name: mahotas/polygon.py
Class Name:
Method Name: convexhull


Project Name: mne-tools/mne-python
Commit Name: 3a95f054a46abd989a529cd16f4c6eff468ee2de
Time: 2019-08-16
Author: larson.eric.d@gmail.com
File Name: mne/minimum_norm/_eloreta.py
Class Name:
Method Name: _compute_eloreta