def p2pardict(self, p):
d = {}<EOL>N = self.Nstars<EOL>i = <NUM_LIT:0><EOL>for s in self.systems:<EOL><INDENT>age, feh, dist, AV = p[i+N[s]:i+N[s]+<NUM_LIT:4>]<EOL>for j in xrange(N[s]):<EOL><INDENT>l = '<STR_LIT>'.format(s,j)<EOL>mass = p[i+j]<EOL>d[l] = [mass, age, feh, dist, AV]<EOL><DEDENT>i += N[s] + <NUM_LIT:4><EOL><DEDENT>return d<EOL>
Given leaf labels, turns parameter vector into pardict