Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
0e10ca3d
Commit
0e10ca3d
authored
Dec 26, 2013
by
Yannick Roehlly
Browse files
Change SEDCreationModule for CreationModule
parent
3e86383c
Changes
14
Hide whitespace changes
Inline
Side-by-side
pcigale/creation_modules/__init__.py
View file @
0e10ca3d
...
...
@@ -70,7 +70,7 @@ def complete_parameters(given_parameters, parameter_list):
return
result
class
SED
CreationModule
(
object
):
class
CreationModule
(
object
):
"""Abstract class, the pCigale SED creation modules are based on.
"""
...
...
pcigale/creation_modules/bc03.py
View file @
0e10ca3d
...
...
@@ -5,11 +5,11 @@
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
from
..data
import
Database
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Module computing the Star Formation History contribution bases on the
Bruzual and Charlot (2003) models.
"""
...
...
pcigale/creation_modules/casey2012.py
View file @
0e10ca3d
...
...
@@ -6,10 +6,10 @@
import
numpy
as
np
import
scipy.constants
as
cst
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""
Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Casey (2012) model.
...
...
pcigale/creation_modules/dale2014.py
View file @
0e10ca3d
...
...
@@ -5,10 +5,10 @@
from
collections
import
OrderedDict
from
pcigale.data
import
Database
from
.
import
SED
CreationModule
from
.
import
CreationModule
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""
Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Dale et al (2014) models.
...
...
pcigale/creation_modules/dh2002.py
View file @
0e10ca3d
...
...
@@ -4,11 +4,11 @@
# Author: Yannick Roehlly <yannick.roehlly@oamp.fr>
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
from
..data
import
Database
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""
Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Dale and Helou (2002) templates.
...
...
pcigale/creation_modules/dl2007.py
View file @
0e10ca3d
...
...
@@ -6,10 +6,10 @@
from
collections
import
OrderedDict
import
numpy
as
np
from
pcigale.data
import
Database
from
.
import
SED
CreationModule
from
.
import
CreationModule
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""
Module computing the infra-red re-emission corresponding to an amount of
attenuation using the Draine and Li (2007) models.
...
...
pcigale/creation_modules/dustatt_calzleit.py
View file @
0e10ca3d
...
...
@@ -5,7 +5,7 @@
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
from
..data
import
Database
...
...
@@ -159,7 +159,7 @@ def a_vs_ebv(wavelength, bump_wave, bump_width, bump_ampl, power_slope):
return
attenuation
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Add CCM dust attenuation based on the Calzetti formula
If a contribution name is given in the parameter list, the attenuation
...
...
pcigale/creation_modules/dustatt_powerlaw.py
View file @
0e10ca3d
...
...
@@ -11,7 +11,7 @@ in Charlot and Fall (2000) with a UV bump added.
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
from
..data
import
Database
...
...
@@ -91,7 +91,7 @@ def alambda_av(wavelength, delta, bump_wave, bump_width, bump_ampl):
return
attenuation
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Add CCM dust attenuation based on Charlot and Fall (2000) power law.
"""
...
...
pcigale/creation_modules/igmattenuation.py
View file @
0e10ca3d
...
...
@@ -5,12 +5,12 @@
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
from
..sed
import
utils
from
..extern.lsst
import
Sed
as
lsst
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Redshift a SED and add IGM attenuation
This module adds both the effect of redshift and inter-galactic medium
...
...
pcigale/creation_modules/lines.py
View file @
0e10ca3d
...
...
@@ -6,10 +6,10 @@
import
numpy
as
np
from
collections
import
OrderedDict
from
scipy.constants
import
c
from
.
import
SED
CreationModule
from
.
import
CreationModule
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
parameter_list
=
OrderedDict
([
(
"Nly_key"
,
(
...
...
pcigale/creation_modules/loadfile.py
View file @
0e10ca3d
...
...
@@ -5,10 +5,10 @@
import
atpy
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""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
...
...
pcigale/creation_modules/m2005.py
View file @
0e10ca3d
...
...
@@ -5,11 +5,11 @@
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
from
..data
import
Database
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Module computing the Star Formation History contribution based on the
Maraston (2005) models.
...
...
pcigale/creation_modules/sfh2exp.py
View file @
0e10ca3d
...
...
@@ -5,14 +5,14 @@
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
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
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Create a double decreasing exponential Star Formation History
This module create a star formation history (star formation rate vs galaxy
...
...
pcigale/creation_modules/sfhfromfile.py
View file @
0e10ca3d
...
...
@@ -6,10 +6,10 @@
import
atpy
import
numpy
as
np
from
collections
import
OrderedDict
from
.
import
SED
CreationModule
from
.
import
CreationModule
class
Module
(
SED
CreationModule
):
class
Module
(
CreationModule
):
"""Module reading the SFH from a file
This module is used to read the Star Formation Histories from a FITS or
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment