Beispiel #1
0
 def th(self, pars):
     return get_theory(p,
                       self.d,
                       cosmo,
                       hm_correction=hm_correction,
                       selection=sel,
                       **pars)
Beispiel #2
0
 def _th(self, pars):
     return get_theory(self.p,
                       self.d,
                       self.cosmo,
                       hm_correction=self.hm_correction,
                       selection=self.sel,
                       **pars)
Beispiel #3
0
def th(pars, d):
    return get_theory(p,
                      d,
                      cosmo,
                      hm_correction=hm_correction,
                      selection=None,
                      **pars)
Beispiel #4
0
 def th(pars):
     return get_theory(p,
                       d,
                       cosmo,
                       return_separated=False,
                       hm_correction=hm_correction,
                       selection=sel,
                       **pars)
Beispiel #5
0
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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)