def _floats_from_string(line):
  """
  Split a string using blank spaces and convert the elements to float. If an element
  cannot be converted it is skipped.
  """
  line_float = []
  for value in line.split():
      try: line_float.append(float(value))
      except ValueError: pass
  return line_float