Skip to content

Commit c294429

Browse files
committed
update docstrings, especially for new dust_type.
1 parent 1a787da commit c294429

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/fsps/fsps.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class StellarPopulation(object):
318318
For ``sfh=5``, this is the slope of the SFR after time ``sf_trunc``.
319319
320320
:param dust_type: (default: 0)
321-
Common variable defining the extinction curve for dust around old stars:
321+
Common variable defining the attenuation curve for dust around 'old' stars:
322322
323323
* 0: power law with index dust index set by ``dust_index``.
324324
* 1: Milky Way extinction law (with the :math:`R = A_V /E(B - V)` value
@@ -335,7 +335,9 @@ class StellarPopulation(object):
335335
effect because the WG00 models specify the full attenuation curve.
336336
* 4: Kriek & Conroy (2013) attenuation curve. In this model the slope
337337
of the curve, set by the parameter ``dust_index``, is linked to the
338-
strength of the UV bump.
338+
strength of the UV bump and is the *offset* in slope from Calzetti.
339+
* 5: The SMC bar extinction curve from Gordon et al. (2003)
340+
* 6: The Reddy et al. (2015) attenuation curve.
339341
340342
:param dust_tesc: (default: 7.0)
341343
Stars younger than ``dust_tesc`` are attenuated by both ``dust1`` and
@@ -564,7 +566,7 @@ def get_spectrum(self, zmet=None, tage=0.0, peraa=False):
564566
the current value of ``self.params["zmet"]``.
565567
566568
:param tage: (default: 0.0)
567-
The age of the stellar population for which to obtain a
569+
The age of the stellar population in Gyr) for which to obtain a
568570
spectrum. By default, this will compute a grid of ages from
569571
:math:`t \approx 0` to the maximum age in the isochrones.
570572
@@ -612,9 +614,9 @@ def get_mags(self, zmet=None, tage=0.0, redshift=None, bands=None):
612614
current value of ``self.params["zmet"]``.
613615
614616
:param tage: (default: 0.0)
615-
The age of the stellar population. By default, this will compute a
616-
grid of ages from :math:`t \approx 0` to the maximum age in the
617-
isochrones.
617+
The age of the stellar population in Gyr. By default, this will
618+
compute a grid of ages from :math:`t \approx 0` to the maximum age
619+
in the isochrones.
618620
619621
:param redshift: (default: None)
620622
Optionally redshift the spectrum first. If not supplied, the

0 commit comments

Comments
 (0)