From 38ab63fc5191a4893f6f46d9b8b40ae988f66c88 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 31 Jul 2017 19:48:43 +0800 Subject: Add `fg21sim.share` module to hold globally shared "CONFIGS" & "COSMO" Signed-off-by: Aaron LI --- fg21sim/utils/__init__.py | 2 -- fg21sim/utils/cosmology.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'fg21sim/utils') 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) -- cgit v1.2.2