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/extragalactic/clusters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/extragalactic') diff --git a/fg21sim/extragalactic/clusters.py b/fg21sim/extragalactic/clusters.py index 753b025..d23ddbf 100644 --- a/fg21sim/extragalactic/clusters.py +++ b/fg21sim/extragalactic/clusters.py @@ -21,7 +21,7 @@ from astropy.cosmology import FlatLambdaCDM import healpy as hp import pandas as pd -from ..utils import write_fits_healpix +from ..utils.fits import write_fits_healpix from ..utils.random import spherical_uniform from ..utils.convert import Fnu_to_Tb_fast from ..utils.grid import make_grid_ellipse, map_grid_to_healpix -- cgit v1.2.2