#NEWLINE# def compute_highlevel_features( turbine , power_features = True , ramp_features = True , stability_features = True ) : #NEWLINE# #INDENT# X = np . array ( [ m [ 1 ] for m in turbine . get_measurements ( ) ] ) #NEWLINE# feat = [ ] #NEWLINE# month_power = [ ] #NEWLINE# '\n    power features\n    ' #NEWLINE# l = ( len ( X ) / 12 ) #NEWLINE# indices = [ ( ( i * l ) , ( ( i + 1 ) * l ) ) for i in range ( 12 ) ] #NEWLINE# x = [ sum ( X [ i : j ] ) for ( i , j ) in indices ] #NEWLINE# feat = ( l + x ) #NEWLINE# month_power = x #NEWLINE# return month_power