def matrixToDicts(data):
<EOL>if "<STR_LIT:float>" in str(type(data[<NUM_LIT:0>])):<EOL><INDENT>d={}<EOL>for x in range(len(data)):<EOL><INDENT>d[data.dtype.names[x]]=data[x]<EOL><DEDENT>return d<EOL><DEDENT>l=[]<EOL>for y in range(len(data)):<EOL><INDENT>d={}<EOL>for x in range(len(data[y])):<EOL><INDENT>d[data.dtype.names[x]]=data[y][x]<EOL><DEDENT>l.append(d)<EOL><DEDENT>return l<EOL>
given a recarray, return it as a list of dicts.