From 7a946813fa18c6069b564023381338975781a5fd Mon Sep 17 00:00:00 2001 From: torradocacho Date: Fri, 12 Mar 2021 21:14:30 +0100 Subject: [PATCH] classy: updated to 3.0 (some tests still failing) --- cobaya/theories/classy/classy.py | 3 +-- tests/test_cosmo_bicep_keck_2015.py | 2 +- tests/test_cosmo_planck_2015.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cobaya/theories/classy/classy.py b/cobaya/theories/classy/classy.py index c8e749210..661601a2b 100644 --- a/cobaya/theories/classy/classy.py +++ b/cobaya/theories/classy/classy.py @@ -168,7 +168,7 @@ class classy(BoltzmannBase): """ # Name of the Class repo/folder and version to download _classy_repo_name = "lesgourg/class_public" - _min_classy_version = "v2.9.3" + _min_classy_version = "v3.0.0" _classy_min_gcc_version = "6.4" # Lower ones are possible atm, but leak memory! _classy_repo_version = os.environ.get('CLASSY_REPO_VERSION', _min_classy_version) @@ -251,7 +251,6 @@ def must_provide(self, **requirements): # (default: 0.1). But let's leave it like this in case this changes # in the future. self.add_z_for_matter_power(v.pop("z")) - if v["nonlinear"] and "non linear" not in self.extra_args: self.extra_args["non linear"] = non_linear_default_code pair = k[2:] diff --git a/tests/test_cosmo_bicep_keck_2015.py b/tests/test_cosmo_bicep_keck_2015.py index d49e767fe..5d4b9ccb3 100644 --- a/tests/test_cosmo_bicep_keck_2015.py +++ b/tests/test_cosmo_bicep_keck_2015.py @@ -22,7 +22,7 @@ def test_bicep_keck_2015_classy(packages_path, skip_not_installed): info_theory = {"classy": {"extra_args": classy_extra}} # extra tolerance for CLASS chi2_classy = deepcopy(chi2) - chi2_classy["tolerance"] *= 2 + chi2_classy["tolerance"] += 0.25 body_of_test(packages_path, test_point, lik_info, info_theory, chi2_classy, extra_model={"primordial": "SFSR_t"}, skip_not_installed=skip_not_installed) diff --git a/tests/test_cosmo_planck_2015.py b/tests/test_cosmo_planck_2015.py index f6bb11805..715cd6f4c 100644 --- a/tests/test_cosmo_planck_2015.py +++ b/tests/test_cosmo_planck_2015.py @@ -27,7 +27,7 @@ "DH", "Y_p"] # Small chi2 difference with CLASS (total still <0.5) -classy_extra_tolerance = 0.2 +classy_extra_tolerance = 0.32 def test_planck_2015_t_camb(packages_path, skip_not_installed):