def dict_to_pos_rad(d):
p, r = [], []<EOL>for i in itertools.count():<EOL><INDENT>try:<EOL><INDENT>p.append([d['<STR_LIT>'.format(i, c)] for c in '<STR_LIT>'])<EOL>r.append(d['<STR_LIT>'.format(i)])<EOL><DEDENT>except KeyError:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return np.array(p), np.array(r)<EOL>
Given a dictionary of a states params:values, returns the pos & rad.