From ec02a0d052dfe3d045994bed7849e513501997e4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 31 Jul 2017 20:00:12 +0800 Subject: cosmology: Avoid the circular importing issue Signed-off-by: Aaron LI --- fg21sim/utils/__init__.py | 1 - fg21sim/utils/cosmology.py | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'fg21sim/utils') 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): -- cgit v1.2.2