Spright

Spright (/spraɪt/) is a fast Bayesian radius-density-mass relation for small planets that allows one to predict planetary masses, densities, and RV semi-amplitudes from an estimate of the planet’s radius, or planetary radii given an estimate of the planet’s mass.

Installation

Spright can be installed easily using pip:

$ pip install spright

Usage

From the command line

Spright offers an easy-to-use command line script for people who are not overly interested in coding, and nearly-as-easy-to-use set of Python classes for the people who prefer to code. The command line script can create directly publication-quality plots, and the classes offer direct access to the predicted numerical distributions.

$ spright --predict mass --radius 1.8 0.1 --plot-distribution

Python code

from spright import RMRelation

rmr = RMRelation()
mds = rmr.predict_mass(radius=(1.8, 0.1))
mds.plot()

Indices and tables