Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Sep 19, 2019
1 parent 8c4b2ab commit 1bc8c0e
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions exoplanet/distributions/eccentricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
def kipping13(name, fixed=False, long=None, model=None, **kwargs):
"""The beta eccentricity distribution fit by Kipping (2013)
The beta distribution parameters fit by `Kipping (2013)
<https://ui.adsabs.harvard.edu/abs/2013MNRAS.434L..51K/abstract>`_.
Args:
name (str): The name of the eccentricity variable.
fixed (bool, optional): If ``True``, use the posterior median
Expand All @@ -25,10 +28,6 @@ def kipping13(name, fixed=False, long=None, model=None, **kwargs):
Returns:
pm.Beta: The eccentricity distribution.
References:
.. [Kipping13]
https://ui.adsabs.harvard.edu/abs/2013MNRAS.434L..51K/abstract
"""
model = pm.modelcontext(model)
add_citations_to_model(["kipping13b"], model=model)
Expand Down Expand Up @@ -75,6 +74,25 @@ def kipping13(name, fixed=False, long=None, model=None, **kwargs):


def vaneylen19(name, fixed=False, multi=False, model=None, **kwargs):
"""The eccentricity distribution for small planets
The mixture distribution fit by `Van Eylen et al. (2019)
<https://ui.adsabs.harvard.edu/abs/2019AJ....157...61V>`_ to a population
of well-characterized small transiting planets observed by Kepler.
Args:
name (str): The name of the eccentricity variable.
fixed (bool, optional): If ``True``, use the posterior median
hyperparameters. Otherwise, marginalize over the parameters.
multi (bool, optional): If ``True``, use the distribution for systems
with multiple transiting planets. If ``False`` (default), use the
distribution for systems with only one detected transiting planet.
Returns:
pm.Beta: The eccentricity distribution.
"""

model = pm.modelcontext(model)
add_citations_to_model(["vaneylen19"], model=model)

Expand Down

0 comments on commit 1bc8c0e

Please sign in to comment.