27cc6523d8b9705fb1fbd879847a8d540c8c9d02,trunk/SUAVE/Methods/Weights/Correlations/FLOPS/wing_weight.py,,find_sweep,#,332

Before Change


    diff = lst_y - y
    for i in range(len(diff)):
        if diff[i] > 0:
            return swp[i - 1]
        elif diff[i] == 0:
            return swp[i]
    return swp[-1]

After Change


    
    
    // All initial sweeps are the root chord sweep
    swps = np.ones_like(y)*swp[0]
    
    for i in range(len(lst_y)-1):
        e       = lst_y[i]
        swps[y>=e] = swp[i]
        

    return swps

//// @ingroup Methods-Weights-Correlations-FLOPS
def get_spanwise_engine(propulsors, SEMISPAN):
     Returns EETA for the engine locations along the wing
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: suavecode/SUAVE
Commit Name: 27cc6523d8b9705fb1fbd879847a8d540c8c9d02
Time: 2020-10-01
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Weights/Correlations/FLOPS/wing_weight.py
Class Name:
Method Name: find_sweep


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: tensorflow/ranking
Commit Name: 6bf3f51cd0a312da842157665663c2dad9983248
Time: 2021-01-29
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: ClickEMLoss
Method Name: _compute_latent_prob