From b3219ca75b4e566f904f2c57997edc5bdde47ea9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 21 Jul 2017 10:27:03 +0800 Subject: Fix parameter names about cosmology Signed-off-by: Aaron LI --- fg21sim/configs/manager.py | 4 ++-- fg21sim/utils/cosmology.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fg21sim/configs/manager.py b/fg21sim/configs/manager.py index ce376aa..3f773a5 100644 --- a/fg21sim/configs/manager.py +++ b/fg21sim/configs/manager.py @@ -553,8 +553,8 @@ class ConfigManager: conf = self.get("cosmology") cosmoconf = { "H0": conf["H0"], - "OmegaM0": conf["OmegaM0"], - "Omegab0": conf["Omegab0"], + "Om0": conf["OmegaM0"], + "Ob0": conf["Omegab0"], "sigma8": conf["sigma8"], } return cosmoconf diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py index fd9f1ff..9da3d80 100644 --- a/fg21sim/utils/cosmology.py +++ b/fg21sim/utils/cosmology.py @@ -56,8 +56,8 @@ class Cosmology: def __init__(self, H0=configs.cosmology["H0"], - Om0=configs.cosmology["OmegaM0"], - Ob0=configs.cosmology["Omegab0"], + Om0=configs.cosmology["Om0"], + Ob0=configs.cosmology["Ob0"], sigma8=configs.cosmology["sigma8"]): self.setup(H0=H0, Om0=Om0, Ob0=Ob0, sigma8=sigma8) -- cgit v1.2.2