def _load_csv(F):
 if PY2:
  names = F.readline().strip().split(',')
 else:
  names = F.readline().decode('ascii').strip().split(',')
 rec = np.loadtxt(F, skiprows=0, delimiter=',', dtype='a22,f4,f4')
 rec.dtype.names = names
 return rec

def _load_csv ( F ) : if PY2 : names = F . readline ( ) . strip ( ) . split ( ',' ) else : names = F . readline ( ) . decode ( 'ascii' ) . strip ( ) . split ( ',' ) rec = np . loadtxt ( F , skiprows = 0 , delimiter = ',' , dtype = 'a22,f4,f4' ) rec . dtype . names = names return rec
load csv file .