Commit 0e10ca3d authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Change SEDCreationModule for CreationModule

parent 3e86383c
...@@ -70,7 +70,7 @@ def complete_parameters(given_parameters, parameter_list): ...@@ -70,7 +70,7 @@ def complete_parameters(given_parameters, parameter_list):
return result return result
class SEDCreationModule(object): class CreationModule(object):
"""Abstract class, the pCigale SED creation modules are based on. """Abstract class, the pCigale SED creation modules are based on.
""" """
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
from ..data import Database from ..data import Database
class Module(SEDCreationModule): class Module(CreationModule):
"""Module computing the Star Formation History contribution bases on the """Module computing the Star Formation History contribution bases on the
Bruzual and Charlot (2003) models. Bruzual and Charlot (2003) models.
""" """
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
import numpy as np import numpy as np
import scipy.constants as cst import scipy.constants as cst
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
class Module(SEDCreationModule): class Module(CreationModule):
""" """
Module computing the infra-red re-emission corresponding to an amount of Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Casey (2012) model. attenuation using the Casey (2012) model.
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
from collections import OrderedDict from collections import OrderedDict
from pcigale.data import Database from pcigale.data import Database
from . import SEDCreationModule from . import CreationModule
class Module(SEDCreationModule): class Module(CreationModule):
""" """
Module computing the infra-red re-emission corresponding to an amount of Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Dale et al (2014) models. attenuation using the Dale et al (2014) models.
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
# Author: Yannick Roehlly <yannick.roehlly@oamp.fr> # Author: Yannick Roehlly <yannick.roehlly@oamp.fr>
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
from ..data import Database from ..data import Database
class Module(SEDCreationModule): class Module(CreationModule):
""" """
Module computing the infra-red re-emission corresponding to an amount of Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Dale and Helou (2002) templates. attenuation using the Dale and Helou (2002) templates.
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
from collections import OrderedDict from collections import OrderedDict
import numpy as np import numpy as np
from pcigale.data import Database from pcigale.data import Database
from . import SEDCreationModule from . import CreationModule
class Module(SEDCreationModule): class Module(CreationModule):
""" """
Module computing the infra-red re-emission corresponding to an amount of Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Draine and Li (2007) models. attenuation using the Draine and Li (2007) models.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
from ..data import Database from ..data import Database
...@@ -159,7 +159,7 @@ def a_vs_ebv(wavelength, bump_wave, bump_width, bump_ampl, power_slope): ...@@ -159,7 +159,7 @@ def a_vs_ebv(wavelength, bump_wave, bump_width, bump_ampl, power_slope):
return attenuation return attenuation
class Module(SEDCreationModule): class Module(CreationModule):
"""Add CCM dust attenuation based on the Calzetti formula """Add CCM dust attenuation based on the Calzetti formula
If a contribution name is given in the parameter list, the attenuation If a contribution name is given in the parameter list, the attenuation
......
...@@ -11,7 +11,7 @@ in Charlot and Fall (2000) with a UV bump added. ...@@ -11,7 +11,7 @@ in Charlot and Fall (2000) with a UV bump added.
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
from ..data import Database from ..data import Database
...@@ -91,7 +91,7 @@ def alambda_av(wavelength, delta, bump_wave, bump_width, bump_ampl): ...@@ -91,7 +91,7 @@ def alambda_av(wavelength, delta, bump_wave, bump_width, bump_ampl):
return attenuation return attenuation
class Module(SEDCreationModule): class Module(CreationModule):
"""Add CCM dust attenuation based on Charlot and Fall (2000) power law. """Add CCM dust attenuation based on Charlot and Fall (2000) power law.
""" """
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
from ..sed import utils from ..sed import utils
from ..extern.lsst import Sed as lsst from ..extern.lsst import Sed as lsst
class Module(SEDCreationModule): class Module(CreationModule):
"""Redshift a SED and add IGM attenuation """Redshift a SED and add IGM attenuation
This module adds both the effect of redshift and inter-galactic medium This module adds both the effect of redshift and inter-galactic medium
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from scipy.constants import c from scipy.constants import c
from . import SEDCreationModule from . import CreationModule
class Module(SEDCreationModule): class Module(CreationModule):
parameter_list = OrderedDict([ parameter_list = OrderedDict([
("Nly_key", ( ("Nly_key", (
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
import atpy import atpy
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
class Module(SEDCreationModule): class Module(CreationModule):
"""Module reading a spectrum from a file and adding it to the SED. """Module reading a spectrum from a file and adding it to the SED.
Note that this module uses the atpy module, which is not automatically Note that this module uses the atpy module, which is not automatically
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
from ..data import Database from ..data import Database
class Module(SEDCreationModule): class Module(CreationModule):
"""Module computing the Star Formation History contribution based on the """Module computing the Star Formation History contribution based on the
Maraston (2005) models. Maraston (2005) models.
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
# Time lapse used in the age grid in Myr. If should be consistent with the # Time lapse used in the age grid in Myr. If should be consistent with the
# time lapse in the SSP modules. # time lapse in the SSP modules.
AGE_LAPSE = 1 AGE_LAPSE = 1
class Module(SEDCreationModule): class Module(CreationModule):
"""Create a double decreasing exponential Star Formation History """Create a double decreasing exponential Star Formation History
This module create a star formation history (star formation rate vs galaxy This module create a star formation history (star formation rate vs galaxy
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
import atpy import atpy
import numpy as np import numpy as np
from collections import OrderedDict from collections import OrderedDict
from . import SEDCreationModule from . import CreationModule
class Module(SEDCreationModule): class Module(CreationModule):
"""Module reading the SFH from a file """Module reading the SFH from a file
This module is used to read the Star Formation Histories from a FITS or This module is used to read the Star Formation Histories from a FITS or
......
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