示例#1
0
 def th(self, pars):
     return get_theory(p,
                       self.d,
                       cosmo,
                       hm_correction=hm_correction,
                       selection=sel,
                       **pars)
示例#2
0
文件: chanal.py 项目: nikfilippas/yxg
 def _th(self, pars):
     return get_theory(self.p,
                       self.d,
                       self.cosmo,
                       hm_correction=self.hm_correction,
                       selection=self.sel,
                       **pars)
示例#3
0
def th(pars, d):
    return get_theory(p,
                      d,
                      cosmo,
                      hm_correction=hm_correction,
                      selection=None,
                      **pars)
示例#4
0
 def th(pars):
     return get_theory(p,
                       d,
                       cosmo,
                       return_separated=False,
                       hm_correction=hm_correction,
                       selection=sel,
                       **pars)
示例#5
0
文件: mcmc.py 项目: nikfilippas/yxgxk
def th(kwargs):
    """Theory for free cosmology."""
    cosmo_use = p.get_cosmo(pars=kwargs)  # optimized internally
    return get_theory(p,
                      d,
                      cosmo_use,
                      hmc,
                      hm_correction=hm_correction,
                      **kwargs)
示例#6
0
 def th2h(self, pars):
     return get_theory(p,
                       self.d,
                       cosmo,
                       hm_correction=hm_correction,
                       selection=sel,
                       include_2h=True,
                       include_1h=False,
                       **pars)
示例#7
0
def th(pars,d):
    if not cosmo_vary:
        cosmo_fid = cosmo
        hmc_fid = hmc
    else:
        cosmo_fid = COSMO_ARGS(kwargs)
        hmc_fid = get_hmcalc(cosmo_fid, **kwargs)
    return get_theory(p, d, cosmo_fid, hmc_fid,
                      hm_correction=hm_correction,
                      selection=None,**pars)
示例#8
0
 def th2h(pars):
     return get_theory(p,
                       d,
                       cosmo,
                       return_separated=False,
                       hm_correction=hm_correction,
                       selection=sel,
                       include_2h=True,
                       include_1h=False,
                       **pars)
示例#9
0
 def th2h(pars):
     if not cosmo_vary:
         pars_fid = pars
         cosmo_fid = cosmo
         hmc_fid = hmc
     else:
         pars_fid = {**p.get_cosmo_pars(), **pars}
         cosmo_fid = COSMO_ARGS(pars_fid)
         hmc_fid = get_hmcalc(cosmo_fid, **pars_fid)
     return get_theory(p, d, cosmo_fid, hmc_fid,
                       return_separated=False,
                       hm_correction=None,
                       include_1h=False, include_2h=True,
                       **pars_fid)
示例#10
0
 def th2h(self, pars):
     if not cosmo_vary:
         cosmo_fid = cosmo
         hmc_fid = hmc
     else:
         cosmo_fid = COSMO_ARGS(kwargs)
         hmc_fid = get_hmcalc(cosmo_fid, **kwargs)
     return get_theory(p,
                       self.d,
                       cosmo_fid,
                       hmc_fid,
                       hm_correction=hm_correction,
                       selection=sel,
                       include_2h=True,
                       include_1h=False,
                       **pars)
示例#11
0
 def _th(self, pars):
     if self.cosmo_vary:
         cosmo = COSMO_ARGS(pars)
     else:
         cosmo = self.cosmo
     return get_theory(self.p, self.d, cosmo, self.hmc, **pars)