#NEWLINE# def where( x , * args ) : #NEWLINE# #INDENT# 'Delegate to gnumpy.where or numpy.where depending on the type of `x`.' #NEWLINE# if ( not isinstance ( x , np . ndarray ) ) : #NEWLINE# #INDENT# return gp . where ( x , * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return np . where ( x , * args )