e73418dbc43053ccb522e94e9846de1c88667b73,trunk/SUAVE/Components/Energy/Networks/Propulsor_Surrogate.py,Propulsor_Surrogate,build_surrogate,#Propulsor_Surrogate#,73
Before Change
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):
if (col1[ii] == col1[ii+1])&(col2[ii] == col2[ii+1])&(col3[ii] == col3[ii+1]):
np.delete(my_data,(ii), axis=0)
xy = my_data[1:,:3] // Altitude, Mach, Throttle
thr = np.transpose(np.atleast_2d(my_data[1:,3])) // Thrust
sfc = np.transpose(np.atleast_2d(my_data[1:,4])) // SFC
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]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: suavecode/SUAVE
Commit Name: 0a7bbb0f733a33a072aa1327dc4699d317d4ce56
Time: 2015-09-21
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Optimization/Nexus.py
Class Name: Nexus
Method Name: finite_difference
Project Name: librosa/librosa
Commit Name: aec9669a8f7653fad7336d353b19d6749ef3dca3
Time: 2014-01-15
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: stft