Ejemplo n.º 1
0
 def test_buildprior_fast(self):
     " MultiFitter.buildprior with fast=False "
     prior = gv.BufferDict(self.prior)
     prior['dummy'] = gv.gvar('12(12)')
     fitter = MultiFitter(models=self.make_models(ncg=1), fast=False)
     newprior = fitter.buildprior(prior=prior)
     self.assertEqual(str(prior), str(newprior))
Ejemplo n.º 2
0
 def test_buildprior(self):
     " MultiFitter.buildprior "
     prior = gv.BufferDict(self.prior)
     prior['dummy'] = gv.gvar('12(12)')
     fitter = MultiFitter(models=self.make_models(ncg=1))
     prior = fitter.buildprior(prior=prior)
     self.assertEqual(str(prior), str(self.prior))
Ejemplo n.º 3
0
 def test_buildprior_marginalized(self):
     " MultiFitter.buildprior with marginalization"
     prior = gv.BufferDict(self.prior)
     prior['dummy'] = gv.gvar('12(12)')
     fitter = MultiFitter(models=self.make_models(ncg=1), mopt=True)
     prior = fitter.buildprior(prior=prior, mopt=fitter.mopt)
     del self.prior['b']
     self.assertEqual(str(prior), str(self.prior))