def _conv(obj, dtype=None):
 if (obj is None):
  return obj
 else:
  if (dtype is None):
   obj = numpy.asarray(obj)
  else:
   obj = numpy.asarray(obj, dtype)
  if (obj.shape == ()):
   return obj.dtype.type(obj)
  else:
   return obj

def _conv ( obj , dtype = None ) : if ( obj is None ) : return obj else : if ( dtype is None ) : obj = numpy . asarray ( obj ) else : obj = numpy . asarray ( obj , dtype ) if ( obj . shape == ( ) ) : return obj . dtype . type ( obj ) else : return obj
convert an object to the preferred form for input to the odr routine .