code: def read_array(fname, sep=','):
      r
      with open(fname) as f:
          records = []
          for line in f:
              row = line.split(sep)
              record = [list(map(float, col.split())) for col in row]
              records.append(record)
          return numpy.array(records)
docs: r"""
      Convert a CSV file without header into a numpy array of floats.
  
      >>> from openquake.baselib.general import gettemp
      >>> print(read_array(gettemp('.1 .2, .3 .4, .5 .6\n')))
      [[[0.1 0.2]
        [0.3 0.4]
        [0.5 0.6]]]