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.

Files for mrexo, version
Filename, size File type Python version Upload date Hashes
Filename, size mrexo- (113.4 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mrexo- (169.8 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page