Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions sedpy/attenuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def powerlaw(wave, tau_v=1, alpha=1.0, **kwargs):
"""Simple power-law attenuation, normalized to 5500\AA.
r"""Simple power-law attenuation, normalized to 5500\AA.

:param wave:
The wavelengths at which optical depth estimates are desired.
Expand All @@ -33,7 +33,7 @@ def powerlaw(wave, tau_v=1, alpha=1.0, **kwargs):


def calzetti(wave, tau_v=1, R_v=4.05, **kwargs):
"""Calzetti et al. 2000 starburst attenuation curve, with extrapolations to
r"""Calzetti et al. 2000 starburst attenuation curve, with extrapolations to
the FUV and NIR.

:param wave:
Expand Down Expand Up @@ -102,7 +102,7 @@ def drude(x, x0=4.59, gamma=0.90, **extras):


def noll(wave, tau_v=1, delta=0.0, c_r=0.0, Ebump=0.0, **kwargs):
"""Noll 2009 attenuation curve. This is based on the Calzetti curve, with
r"""Noll 2009 attenuation curve. This is based on the Calzetti curve, with
added variable bump (as Drude) and overall slope change. Any extra
keywords are passed to the Drude (e.g. x0, gamma, both in inverse microns).

Expand Down Expand Up @@ -133,7 +133,7 @@ def noll(wave, tau_v=1, delta=0.0, c_r=0.0, Ebump=0.0, **kwargs):


def chevallard(wave, tau_v=1, **kwargs):
""" \tau_v dependent attenuation curves matched to disk RT models,
r""" \tau_v dependent attenuation curves matched to disk RT models,
as in Chevallard et al. 2013. No UV bump (or indeed tests in the
UV at all).

Expand All @@ -156,7 +156,7 @@ def chevallard(wave, tau_v=1, **kwargs):


def conroy(wave, tau_v=1, R_v=3.1, f_bump=0.6, **kwargs):
""" Conroy & Schiminovich 2010 dust attenuation curves including a
r""" Conroy & Schiminovich 2010 dust attenuation curves including a
decreased UV bump.

:param wave:
Expand Down Expand Up @@ -235,7 +235,7 @@ def conroy(wave, tau_v=1, R_v=3.1, f_bump=0.6, **kwargs):

def broken_powerlaw(wave, tau_v=1, alpha=[0.7, 0.7, 0.7],
breaks=[0, 3000, 10000, 4e4], **kwargs):
""" Attenuation curve as in V. Wild et al. 2011, i.e. power-law
r""" Attenuation curve as in V. Wild et al. 2011, i.e. power-law
slope can change between regions. Superceded by Chevallard 2013
for optical/NIR.

Expand Down Expand Up @@ -271,7 +271,7 @@ def wg00(wave, tau_v=1, geometry='SHELL', composition='MW',


def cardelli(wave, tau_v=1, R_v=3.1, **kwargs):
""" Cardelli, Clayton, and Mathis 1998 Milky Way extinction curve,
r""" Cardelli, Clayton, and Mathis 1998 Milky Way extinction curve,
with an update in the near-UV from O'Donnell 1994

:param wave:
Expand Down Expand Up @@ -336,7 +336,7 @@ def cardelli(wave, tau_v=1, R_v=3.1, **kwargs):


def smc(wave, tau_v=1, **kwargs):
"""Pei 1992 SMC extinction curve.
r"""Pei 1992 SMC extinction curve.

:param wave:
The wavelengths at which optical depth estimates are desired.
Expand Down Expand Up @@ -369,7 +369,7 @@ def smc(wave, tau_v=1, **kwargs):


def lmc(wave, tau_v=1, **kwargs):
""" Pei 1992 LMC extinction curve.
r""" Pei 1992 LMC extinction curve.

:param wave:
The wavelengths at which optical depth estimates are desired.
Expand Down
4 changes: 2 additions & 2 deletions sedpy/observate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class Filter(object):
"""This class operates on filter transmission files. It reads simple
r"""This class operates on filter transmission files. It reads simple
2-column ascii files containing filter transmission curves. It caches a
number of useful filter quantities. Methods are provided to project a
source spectrum onto the filter and return the magnitude, AB or Vega.
Expand Down Expand Up @@ -557,7 +557,7 @@ def _set_filters(self, native, wmin=None, wmax=None, dlnlam=None,
dlnlam=self.dlnlam, **loading_kwargs)

def _build_super_trans(self):
"""Build the global gridded transmission array. Populates FilterSet.trans, which
r"""Build the global gridded transmission array. Populates FilterSet.trans, which
is an array of shape (nfilters, nlam) giving :math:`T\times \lambda \times
d\lambda / Z` where `T` is the detector signal per photon and `Z` is the
detector signal for a 1 maggie source
Expand Down
4 changes: 2 additions & 2 deletions sedpy/smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def smoothspec(wave, spec, resolution=None, outwave=None,
smoothtype="vel", fftsmooth=True,
min_wave_smooth=0, max_wave_smooth=np.inf, **kwargs):
"""
r"""
Parameters
----------
wave : ndarray of shape ``(N_pix,)``
Expand Down Expand Up @@ -288,7 +288,7 @@ def smooth_vel_fft(wavelength, spectrum, outwave, sigma_out, inres=0.0,

def smooth_wave(wave, spec, outwave, sigma, nsigma=10, inres=0, in_vel=False,
**extras):
"""Smooth a spectrum in wavelength space. This is insanely slow, but
r"""Smooth a spectrum in wavelength space. This is insanely slow, but
general and correct (except for the treatment of the input resolution if it
is velocity)

Expand Down