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