From 9d7c7bb53244d2f79173b0f7fe1c6e91a656a240 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 29 Oct 2016 23:10:40 +0800 Subject: 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! --- bin/healpix2hpx | 3 ++- bin/hpx2healpix | 4 +++- bin/zea2healpix | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'bin') 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(): diff --git a/bin/hpx2healpix b/bin/hpx2healpix index bbc3e0d..5d48987 100755 --- a/bin/hpx2healpix +++ b/bin/hpx2healpix @@ -15,7 +15,9 @@ import logging import fg21sim from fg21sim.configs import configs -from fg21sim.utils import hpx2healpix, write_fits_healpix, setup_logging +from fg21sim.utils import setup_logging +from fg21sim.utils.healpix import hpx2healpix +from fg21sim.utils.fits import write_fits_healpix def main(): diff --git a/bin/zea2healpix b/bin/zea2healpix index 334bf6d..dde7dbd 100755 --- a/bin/zea2healpix +++ b/bin/zea2healpix @@ -22,7 +22,9 @@ import logging import fg21sim from fg21sim.configs import configs -from fg21sim.utils import zea2healpix, write_fits_healpix, setup_logging +from fg21sim.utils import setup_logging +from fg21sim.utils.reproject import zea2healpix +from fg21sim.utils.fits import write_fits_healpix def main(): -- cgit v1.2.2