def validate_streamline(x, y):
 if (np is False):
  raise ImportError('FigureFactory.create_streamline requires numpy')
 for index in range((len(x) - 1)):
  if (((x[(index + 1)] - x[index]) - (x[1] - x[0])) > 0.0001):
   raise exceptions.PlotlyError('x must be a 1 dimensional, evenly spaced array')
 for index in range((len(y) - 1)):
  if (((y[(index + 1)] - y[index]) - (y[1] - y[0])) > 0.0001):
   raise exceptions.PlotlyError('y must be a 1 dimensional, evenly spaced array')

def validate_streamline ( x , y ) : if ( np is False ) : raise ImportError ( 'FigureFactory.create_streamline requires numpy' ) for index in range ( ( len ( x ) - 1 ) ) : if ( ( ( x [ ( index + 1 ) ] - x [ index ] ) - ( x [ 1 ] - x [ 0 ] ) ) > 0.0001 ) : raise exceptions . PlotlyError ( 'x must be a 1 dimensional, evenly spaced array' ) for index in range ( ( len ( y ) - 1 ) ) : if ( ( ( y [ ( index + 1 ) ] - y [ index ] ) - ( y [ 1 ] - y [ 0 ] ) ) > 0.0001 ) : raise exceptions . PlotlyError ( 'y must be a 1 dimensional, evenly spaced array' )
streamline-specific validations specifically .