aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-27 11:23:52 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-27 11:23:52 +0800
commitcf4737858e68967b44e474c4a7e1f805829c18df (patch)
tree23f6ec74267f8c30566872d7f04d32d944345b30
parent5cbbaab825382d1fc174d5f7502947a7846d0361 (diff)
downloadfg21sim-cf4737858e68967b44e474c4a7e1f805829c18df.tar.bz2
fg21sim/__init__.py: Do not import from ".foregrounds"
Import from ".foregrounds" involves a lot of imports of other components, which cause a lot of numba JIT compilations. Therefore, the simple "import fg21sim" causes a long lag for running the scripts, e.g., bin/healpix2hpx.
-rw-r--r--fg21sim/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/fg21sim/__init__.py b/fg21sim/__init__.py
index 8ff996e..1142e26 100644
--- a/fg21sim/__init__.py
+++ b/fg21sim/__init__.py
@@ -19,8 +19,6 @@ __description__ = ("Realistic Foregrounds Simulation for "
import logging
-from .foregrounds import Foregrounds
-
# Set default logging handle to avoid "No handler found" warnings.
logging.getLogger(__name__).addHandler(logging.NullHandler())