def _check_1d(x):
 if ((not hasattr(x, u'shape')) or (len(x.shape) < 1)):
  return np.atleast_1d(x)
 else:
  try:
   x[:, None]
   return x
  except (IndexError, TypeError):
   return np.atleast_1d(x)

def _check_1d ( x ) : if ( ( not hasattr ( x , u'shape' ) ) or ( len ( x . shape ) < 1 ) ) : return np . atleast_1d ( x ) else : try : x [ : , None ] return x except ( IndexError , TypeError ) : return np . atleast_1d ( x )
converts a sequence of less than 1 dimension .