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
......@@ -13,9 +13,12 @@ decreasing exponentials.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
# Time lapse used in the age grid in Myr. If should be consistent with the
# time lapse in the SSP modules.
AGE_LAPSE = 1
......
......@@ -22,9 +22,12 @@ and interpolate the values of a, b and c.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
# Time lapse used in the age grid in Myr. If should be consistent with the
# time lapse in the SSP modules.
AGE_LAPSE = 1
......
......@@ -15,9 +15,12 @@ constant.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
# Time lapse used in the age grid in Myr. If should be consistent with the
# time lapse in the SSP modules.
AGE_LAPSE = 1
......
......@@ -14,9 +14,12 @@ rise of the SFR up to a maximum, followed by an exponential decrease.
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
# Time lapse used in the age grid in Myr. If should be consistent with the
# time lapse in the SSP modules.
AGE_LAPSE = 1
......
......@@ -12,7 +12,9 @@ This module reads the star formation history in a file.
"""
from collections import OrderedDict
import numpy as np
from ..utils import read_table
from . import CreationModule
......
......@@ -15,7 +15,9 @@ decaying exponential, or "delayed".
"""
from collections import OrderedDict
import numpy as np
from . import CreationModule
......
......@@ -20,6 +20,7 @@ from sqlalchemy import create_engine, exc, Column, String, Float, PickleType
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import class_mapper, sessionmaker
import numpy as np
from .filters import Filter
from .m2005 import M2005
from .bc03 import BC03
......@@ -30,7 +31,6 @@ from .fritz2006 import Fritz2006
from .nebular_continuum import NebularContinuum
from .nebular_lines import NebularLines
DATABASE_FILE = pkg_resources.resource_filename(__name__, 'data.db')
ENGINE = create_engine('sqlite:///' + DATABASE_FILE, echo=False)
......
......@@ -31,12 +31,14 @@ Such SED is characterised by:
"""
import numpy as np
from scipy.constants import c, parsec
from . import utils
from .io.vo import save_sed_to_vo
from scipy.constants import c, parsec
from ..data import Database
# Time lapse used to compute the average star formation rate. We use a
# constant to keep it easily changeable for advanced user while limiting the
# number of parameters. The value is in Myr.
......
......@@ -3,14 +3,16 @@
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Yannick Roehlly
import configobj
import pkg_resources
import pkgutil
import collections
import multiprocessing as mp
import numpy as np
from glob import glob # To allow the use of glob() in "eval..."
from textwrap import wrap
import configobj
from glob import glob # To allow the use of glob() in "eval..."
import pkg_resources
import numpy as np
from ..data import Database
from ..utils import read_table
from .. import creation_modules
......
......@@ -4,6 +4,7 @@
# Author: Yannick Roehlly
import marshal
from ..sed import SED
from .. import creation_modules
......
......@@ -4,13 +4,15 @@
# Author: Médéric Boquien
import argparse
import multiprocessing as mp
import sys
from astropy.table import Table, Column
import astropy.units as u
import matplotlib.pyplot as plt
import multiprocessing as mp
import numpy as np
from pcigale.data import Database, Filter
import sys
__version__ = "0.1-alpha"
......
......@@ -7,17 +7,19 @@
# Author: Yannick Roehlly, Médéric Boquien & Denis Burgarella
import argparse
from astropy.table import Table
from itertools import product, repeat
from collections import OrderedDict
from astropy.table import Table
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import multiprocessing as mp
import numpy as np
import os
import pkg_resources
from scipy.constants import c, parsec
from scipy.constants import c
from pcigale.data import Database
from pcigale.utils import read_table
from pcigale.session.configuration import Configuration
......
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