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