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! --- fg21sim/galactic/freefree.py | 2 +- fg21sim/galactic/snr.py | 2 +- fg21sim/galactic/synchrotron.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'fg21sim/galactic') diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py index bc5741b..f47f008 100644 --- a/fg21sim/galactic/freefree.py +++ b/fg21sim/galactic/freefree.py @@ -14,7 +14,7 @@ from astropy.io import fits import astropy.units as au import healpy as hp -from ..utils import read_fits_healpix, write_fits_healpix +from ..utils.fits import read_fits_healpix, write_fits_healpix logger = logging.getLogger(__name__) diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py index 5fc52e3..b7bfadc 100644 --- a/fg21sim/galactic/snr.py +++ b/fg21sim/galactic/snr.py @@ -15,7 +15,7 @@ import astropy.units as au import healpy as hp import pandas as pd -from ..utils import write_fits_healpix +from ..utils.fits import write_fits_healpix from ..utils.convert import Fnu_to_Tb from ..utils.grid import make_grid_ellipse, map_grid_to_healpix diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index b82b636..9521155 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -14,7 +14,7 @@ from astropy.io import fits import astropy.units as au import healpy as hp -from ..utils import read_fits_healpix, write_fits_healpix +from ..utils.fits import read_fits_healpix, write_fits_healpix logger = logging.getLogger(__name__) -- cgit v1.2.2