aboutsummaryrefslogtreecommitdiffstats
path: root/bin/healpix2hpx
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-29 23:10:40 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-29 23:10:40 +0800
commit9d7c7bb53244d2f79173b0f7fe1c6e91a656a240 (patch)
tree182f90a2007e1abdca0c721a9c424d7432ea9607 /bin/healpix2hpx
parentd078c1ae3f7171e9e8252474ce5dbaef37a26281 (diff)
downloadfg21sim-9d7c7bb53244d2f79173b0f7fe1c6e91a656a240.tar.bz2
utils/__init__.py: Only import "setup_logging" from "logging.py"
Since some modules (e.g., healpix.py) under "utils" involves Numba JIT optimization, which significantly slows the start-up speed, even some consumers (e.g., bin/fg21sim-webui) do not need them at all. Fix various import statements of other modules. NOTE: not test at the moment!
Diffstat (limited to 'bin/healpix2hpx')
-rwxr-xr-xbin/healpix2hpx3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/healpix2hpx b/bin/healpix2hpx
index 6f30795..fda9627 100755
--- a/bin/healpix2hpx
+++ b/bin/healpix2hpx
@@ -17,7 +17,8 @@ from astropy.io import fits
import fg21sim
from fg21sim.configs import configs
-from fg21sim.utils import healpix2hpx, setup_logging
+from fg21sim.utils import setup_logging
+from fg21sim.utils.healpix import healpix2hpx
def main():