aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-22 23:53:20 +0800
committerAaron LI <aly@aaronly.me>2017-07-22 23:53:20 +0800
commit4476a0ca0e22d6a35bb07da87956d21ec7c49074 (patch)
tree8bbbc491e34956c77d8a1b2f3e38c868fd4e3677 /fg21sim/utils
parentfd5ae04bce31a4cb82dea8532028b6df92b3d476 (diff)
downloadfg21sim-4476a0ca0e22d6a35bb07da87956d21ec7c49074.tar.bz2
Use all uppercase to identify the global CONFIGS and COSMO
Update to use the global CONFIGS and COSMO Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/utils')
-rw-r--r--fg21sim/utils/__init__.py2
-rw-r--r--fg21sim/utils/cosmology.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/fg21sim/utils/__init__.py b/fg21sim/utils/__init__.py
index 194b356..5b61027 100644
--- a/fg21sim/utils/__init__.py
+++ b/fg21sim/utils/__init__.py
@@ -4,4 +4,4 @@
from .logging import setup_logging
from .cosmology import Cosmology
-cosmo = Cosmology()
+COSMO = Cosmology()
diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py
index e4979b1..e4ac4d7 100644
--- a/fg21sim/utils/cosmology.py
+++ b/fg21sim/utils/cosmology.py
@@ -11,7 +11,7 @@ import numpy as np
from scipy import integrate
from astropy.cosmology import FlatLambdaCDM
-from ..configs import configs
+from ..configs import CONFIGS
from .units import (UnitConversions as AUC, Constants as AC)
@@ -55,10 +55,10 @@ class Cosmology:
_growth_factor0 = None
def __init__(self,
- H0=configs.cosmology["H0"],
- Om0=configs.cosmology["Om0"],
- Ob0=configs.cosmology["Ob0"],
- sigma8=configs.cosmology["sigma8"]):
+ H0=CONFIGS.cosmology["H0"],
+ Om0=CONFIGS.cosmology["Om0"],
+ Ob0=CONFIGS.cosmology["Ob0"],
+ sigma8=CONFIGS.cosmology["sigma8"]):
self.setup(H0=H0, Om0=Om0, Ob0=Ob0, sigma8=sigma8)
def setup(self, **kwargs):