Skip to main content

a model for the mass of an exoplanet given the radius

Project description

ExoRM

PyPI Downloads

Author: Kevin Zhu

Features

  • continuous radius-mass relationship
  • smooth with lower residuals
  • simple usage, log10 and linear
  • best-fit for Terran, Neptunian, and Jovian

Installation

To install ExoRM, use pip: pip install ExoRM.

However, many prefer to use a virtual environment.

macOS / Linux:

# make your desired directory
mkdir /path/to/your/directory
cd /path/to/your/directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install ExoRM
source .venv/bin/activate
pip install ExoRM

deactivate # when you are completely done

Windows CMD:

# make your desired directory
mkdir C:path\to\your\directory
cd C:path\to\your\directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install ExoRM
.venv\Scripts\activate
pip install ExoRM

deactivate # when you are completely done

Usage

To first begin using ExoRM, the data and model must be initialized. This is due to the constant discovery of new exoplanets, adding to the data.

Furthermore, this requires periodic updating to include the most recent information.

Simply run process_data.py and initialize_model.py. Both are stored in your OS's Application Data for ExoRM. ExoRM provides built in functions to retrieve from this folder.

To use the model, call ExoRM.load_model() which returns the model from the filepath. If you wish, you may use model.save(...) to save it to your own directory.

The model supports log10 and linear scale in earth radii. When using the model(), .__call__(), or .predict(), the log10 scale is used. Linear predictions are used in .predict_linear().

The high amount of uncertainty can be accessed from ExoRM. There is only log10 uncertainty due to the linear scale's differences, which may be accessed through .calculate_error() for the most recent values or .error for the value calculated at initialization.

ExoRM's data limitations required overrides for certain areas. By default, override_min() and override_max() are set to the inverse power law relationship found by Chen and kipping (2017). The transition points to those are smooth and are calculated to be the closest intersection between the model and the relationship.

An example is seen in the example.ipynb.

License

The License is an MIT License found in the LICENSE file.

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

exorm-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exorm-1.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file exorm-1.0.1.tar.gz.

File metadata

  • Download URL: exorm-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for exorm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 75b4a913aa964306a33f49de0ac87ee961e021e2f5e39b8f923dec6ea84a329d
MD5 a158c69cca66aa98ab5f12e0b0e67d4a
BLAKE2b-256 dc1fbacd7a5540ed61c0177193e6c0f6f3801d4276950fd99541129b6d22911a

See more details on using hashes here.

File details

Details for the file exorm-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: exorm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for exorm-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa7c4528fa2e1c4b3d688091d2b580b3eec87719f00cb2a8b306daf96bb9742b
MD5 279d1cc54b4ebe80899e621aa6864696
BLAKE2b-256 f36842769bff415ac96c86e52d65831045c57bd3f0f3216aaab4e99e7a03748a

See more details on using hashes here.

Supported by

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