From 32fc16fdb026cecd9d0ad34c4cfedbec20e33097 Mon Sep 17 00:00:00 2001 From: Lillian <48307938+nguo690@users.noreply.github.com> Date: Thu, 9 Feb 2023 11:40:56 +0000 Subject: [PATCH] fixing w0 in CLASS initialization Setting Omega_Lambda to 0 so that CLASS will use w0 parsed from input parameters, instead of overwriting it with w0=-1 as it was doing before. --- hmf_emulator/hmf_emulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmf_emulator/hmf_emulator.py b/hmf_emulator/hmf_emulator.py index 655c306..e37980c 100644 --- a/hmf_emulator/hmf_emulator.py +++ b/hmf_emulator/hmf_emulator.py @@ -230,7 +230,7 @@ def set_cosmology(self, params): 'wa_fld': 0.0, 'omega_b': params['omega_b'], 'omega_cdm': params['omega_cdm'], - 'Omega_Lambda': 1 - self.Omega_m, + 'Omega_Lambda': 0.0, 'N_eff': params['N_eff'], 'P_k_max_1/Mpc': 10., 'z_max_pk': 5.03