def load_csv_props(info_file):
info = {}<EOL>columns = {}<EOL>for line in open(info_file):<EOL><INDENT>w = line.split()<EOL>if len(columns)==<NUM_LIT:0>:<EOL><INDENT>for i in range(len(w)):<EOL><INDENT>columns[i] = _parse_entry(w[i])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>info[int(w[<NUM_LIT:0>])] = {}<EOL>for i in range(len(w)):<EOL><INDENT>if i!=<NUM_LIT:0>:<EOL><INDENT>info[int(w[<NUM_LIT:0>])][columns[i]] = _parse_entry(w[i])<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return info<EOL>
Load a generic csv file as used in Sonata