#NEWLINE# def _scoreatpercentile( values , percentile , limit = None ) : #NEWLINE# #INDENT# if ( limit is not None ) : #NEWLINE# #INDENT# values = values [ ( ( values >= limit [ 0 ] ) & ( values <= limit [ 1 ] ) ) ] #NEWLINE# #UNINDENT# return np . percentile ( values , percentile )