Commit 418a1405 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Optimise imports. Cleanup done using PyCharm Community Edition.

parent 74809bca
......@@ -5,6 +5,7 @@
# Author: Yannick Roehlly & Denis Burgarella
from importlib import import_module
import numpy as np
from astropy.table import Column
......
......@@ -42,7 +42,6 @@ from .workers import init_analysis as init_worker_analysis
from .workers import analysis as worker_analysis
from ..utils import ParametersHandler, backup_dir
from ..utils import OUT_DIR
# Tolerance threshold under which any flux or error is considered as 0.
TOLERANCE = 1e-12
......
......@@ -9,7 +9,6 @@ from astropy import log
from astropy.table import Table, Column
import numpy as np
from scipy.special import erf
from scipy.stats import scoreatpercentile
from ..utils import OUT_DIR
......
......@@ -28,6 +28,7 @@ from ...warehouse import SedWarehouse
from .workers import init_fluxes as init_worker_fluxes
from .workers import fluxes as worker_fluxes
# Limit the redshift to this number of decimals
REDSHIFT_DECIMALS = 2
......
......@@ -10,7 +10,6 @@ import time
import numpy as np
from ...warehouse import SedWarehouse
from ..utils import OUT_DIR
......
......@@ -13,7 +13,9 @@ Populations.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
from ..data import Database
......
......@@ -13,8 +13,10 @@ This module implements the Casey (2012) infra-red models.
"""
from collections import OrderedDict
import numpy as np
import scipy.constants as cst
from . import CreationModule
......
......@@ -12,6 +12,7 @@ This module implements the Dale (2014) infra-red models.
"""
from collections import OrderedDict
from pcigale.data import Database
from . import CreationModule
......
......@@ -13,7 +13,9 @@ This module implements the Draine and Li (2007) infra-red models.
"""
from collections import OrderedDict
import numpy as np
from pcigale.data import Database
from . import CreationModule
......
......@@ -13,7 +13,9 @@ This module implements the updated Draine and Li (2007) infrared models.
"""
from collections import OrderedDict
import numpy as np
from pcigale.data import Database
from . import CreationModule
......
......@@ -14,7 +14,9 @@ attenuation formulae, adding an UV-bump and a power law.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
......
......@@ -14,7 +14,9 @@ in Charlot and Fall (2000) with a UV bump added.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
......
......@@ -11,7 +11,9 @@ This module implements the Fritz et al. (2006) models.
"""
from collections import OrderedDict
import numpy as np
from pcigale.data import Database
from . import CreationModule
......
......@@ -11,8 +11,8 @@ This module reads a SED spectrum from a file.
"""
from astropy.table import Table
from collections import OrderedDict
from ..utils import read_table
from . import CreationModule
......
......@@ -12,7 +12,9 @@ This module implements the Maraston (2005) Single Stellar Populations.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
from ..data import Database
......
......@@ -17,8 +17,10 @@ wavelength range.
"""
from collections import OrderedDict
import numpy as np
import scipy.constants as cst
from . import CreationModule
......
......@@ -4,9 +4,11 @@
# Author: Médéric Boquien <mboquien@ast.cam.ac.uk>
from collections import OrderedDict
import numpy as np
from pcigale.data import Database
import scipy.constants as cst
from pcigale.data import Database
from . import CreationModule
......
......@@ -16,7 +16,9 @@ for all the physical processes at play to build the received total emission.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
......
......@@ -18,8 +18,10 @@ This module implements the radio emission of galaxies, taking into account only
"""
from collections import OrderedDict
import numpy as np
import scipy.constants as cst
from . import CreationModule
......
......@@ -21,9 +21,9 @@ is changed, this module may need to be adapted.
import numpy as np
from scipy.constants import parsec
from scipy.misc import factorial
from astropy.cosmology import WMAP7 as cosmology
from ..creation_modules import CreationModule
from astropy.cosmology import WMAP7 as cosmology
def igm_transmission(wavelength, redshift):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment