Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classy: update to 3.0 #149

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cobaya/theories/classy/classy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cosmo_bicep_keck_2015.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cosmo_planck_2015.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down