aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-31 19:48:43 +0800
committerAaron LI <aly@aaronly.me>2017-07-31 19:48:43 +0800
commit38ab63fc5191a4893f6f46d9b8b40ae988f66c88 (patch)
tree623ef7dc722d12e8ed54da6a27508f0448149542 /fg21sim/utils
parent7f3086c7bfcf8e0be531c6885276e3dcdf88f83f (diff)
downloadfg21sim-38ab63fc5191a4893f6f46d9b8b40ae988f66c88.tar.bz2
Add `fg21sim.share` module to hold globally shared "CONFIGS" & "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.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/fg21sim/utils/__init__.py b/fg21sim/utils/__init__.py
index 5b61027..2f9f57f 100644
--- a/fg21sim/utils/__init__.py
+++ b/fg21sim/utils/__init__.py
@@ -3,5 +3,3 @@
from .logging import setup_logging
from .cosmology import Cosmology
-
-COSMO = Cosmology()
diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py
index 23a5e1f..dc5f126 100644
--- a/fg21sim/utils/cosmology.py
+++ b/fg21sim/utils/cosmology.py
@@ -40,7 +40,7 @@ import numpy as np
from scipy import integrate
from astropy.cosmology import FlatLambdaCDM
-from ..configs import CONFIGS
+from ..share import CONFIGS
from .units import (UnitConversions as AUC, Constants as AC)