diff options
-rw-r--r-- | fg21sim/share.py | 2 | ||||
-rw-r--r-- | fg21sim/utils/__init__.py | 1 | ||||
-rw-r--r-- | fg21sim/utils/cosmology.py | 7 |
3 files changed, 2 insertions, 8 deletions
diff --git a/fg21sim/share.py b/fg21sim/share.py index a3b516b..bbe52b4 100644 --- a/fg21sim/share.py +++ b/fg21sim/share.py @@ -29,4 +29,4 @@ CONFIGS = ConfigManager() # NOTE: Once the above shared ``CONFIGS`` setup or loaded with new # configurations, this ``COSMO`` object needs also been updated: # ``COSMO.setup(**CONFIGS.cosmology)`` -COSMO = Cosmology() +COSMO = Cosmology(**CONFIGS.cosmology) diff --git a/fg21sim/utils/__init__.py b/fg21sim/utils/__init__.py index 2f9f57f..1a8b2d3 100644 --- a/fg21sim/utils/__init__.py +++ b/fg21sim/utils/__init__.py @@ -2,4 +2,3 @@ # MIT license from .logging import setup_logging -from .cosmology import Cosmology diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py index dc5f126..a3c8574 100644 --- a/fg21sim/utils/cosmology.py +++ b/fg21sim/utils/cosmology.py @@ -40,7 +40,6 @@ import numpy as np from scipy import integrate from astropy.cosmology import FlatLambdaCDM -from ..share import CONFIGS from .units import (UnitConversions as AUC, Constants as AC) @@ -75,11 +74,7 @@ class Cosmology: # Present day (z=0) growth factor _growth_factor0 = None - def __init__(self, - H0=CONFIGS.cosmology["H0"], - Om0=CONFIGS.cosmology["Om0"], - Ob0=CONFIGS.cosmology["Ob0"], - sigma8=CONFIGS.cosmology["sigma8"]): + def __init__(self, H0=71.0, Om0=0.27, Ob0=0.046, sigma8=0.81): self.setup(H0=H0, Om0=Om0, Ob0=Ob0, sigma8=sigma8) def setup(self, **kwargs): |