コード例 #1
0
def test_sn_jla_lite_slow_camb(modules):
    best_fit = deepcopy(best_fit_base)
    lik = "sn_jla_lite"
    info_likelihood = {lik: {"marginalize": True, "precompute_covmats": False}}
    info_theory = {"camb": {"use_planck_names": True}}
    body_of_test(modules, best_fit, info_likelihood, info_theory,
                 chi2_sn_jla_lite)
コード例 #2
0
def test_sn_jla_classy(modules):
    best_fit = deepcopy(best_fit_base)
    best_fit.update(best_fit_sn)
    lik = "sn_jla"
    info_likelihood = {lik: {}}
    info_theory = {"classy": {"use_planck_names": True}}
    body_of_test(modules, best_fit, info_likelihood, info_theory, chi2_sn_jla)
コード例 #3
0
def test_sdss_dr12_consensus_final_classy(modules):
    lik = "sdss_dr12_consensus_final"
    info_likelihood = {lik: {}}
    info_theory = {"classy": {"use_planck_names": True}}
    chi2_classy = deepcopy(chi2_sdss_dr12_consensus_final)
    chi2_classy["tolerance"] += 1.2
    body_of_test(modules, best_fit_base, info_likelihood, info_theory,
                 chi2_classy)
コード例 #4
0
def test_sdss_dr12_consensus_bao_camb(modules):
    lik = "sdss_dr12_consensus_bao"
    info_likelihood = {lik: {}}
    info_theory = {"camb": {"use_planck_names": True}}
    body_of_test(modules, best_fit_base, info_likelihood, info_theory,
                 chi2_sdss_dr12_consensus_bao)
コード例 #5
0
def test_bicep_keck_2015_camb(modules):
    info_theory = {"camb": {"use_planck_names": True}}
    body_of_test(modules, params, lik_info, info_theory, chi2, derived)
コード例 #6
0
def test_bicep_keck_2015_classy(modules):
    info_theory = {"classy": {"use_planck_names": True}}
    chi2_classy = deepcopy(chi2)
    chi2_classy["tolerance"] += 2.0
    body_of_test(modules, params, lik_info, info_theory, chi2_classy, derived)
コード例 #7
0
def test_sn_pantheon_camb(modules):
    lik = "sn_pantheon"
    info_likelihood = {lik: {}}
    info_theory = {"camb": {"use_planck_names": True}}
    body_of_test(modules, best_fit_base, info_likelihood, info_theory,
                 chi2_sn_pantheon)