Skip to main content

Nonparametric mass radius relationship for exoplanets

Project description


MRExo is a Python script for non-parametric fitting and analysis of the Mass-Radius (M-R) relationship for exoplanets.

We translate Ning et al. (2018)’s R script into a publicly available Python package called MRExo. It offers tools for fitting the M-R relationship to a given data set. Along with the MRExo installation, the fit results from the M dwarf sample dataset from Kanodia et al. (2019) and the Kepler exoplanet sample from Ning et al. (2018) are included. The code also includes predicting functions (M->R, and R->M), and plotting functions to generate the plots used in the below preprint.

For detailed description of the code please see Kanodia et al. (2019)




  1. In the terminal - pip install mrexo

  2. In the terminal - pip install git+ -U


  1. In the terminal - pip install git+ssh:// -U


  1. In the terminal - git clone

  2. In the repository directory python install

The -U is to upgrade the dependencies.


  1. Install Git - Git for Windows

  2. Install pip - pip for Windows

  3. In cmd or git cmd - pip install git+ -U


pip install mrexo


Clone or Download the zip file and then in the repository directory python install

To sign up for updates, please join the Google Group linked here -!forum/mrexo



Guidelines to cite this package can be found here.

The relevant paper can be found on ADS.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mrexo-0.1.1.tar.gz (19.1 kB view hashes)

Uploaded Source

Built Distribution

mrexo-0.1.1-py3-none-any.whl (35.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page