Skip to main content

ExoRM

ExoRM is a model for the mass of an exoplanet given the radius.

Note that the development is tricky; from this package's development, it seems that Chen & Kipping's forecaster is suitable for the limited needs.

PyPI Downloads PyPI version

Author: Kevin Zhu

Features

  • continuous radius-mass relationship
  • smooth
  • simple usage, log10 and linear
  • method to create your own model, existing model provided

Installation

To install ExoRM, use pip: pip install ExoRM.

However, many prefer to use a virtual environment (or any of their preferred choice).

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. You may also call these at any time to update the model.

There is an existing model created in best_inputs.pkl and best_trace.nc, simply provide these paths when you are using to avoid creating your own model.

However, to get your own data and create your own model, simply run get_data() and initialize_model(). Note: import those by using from ExoRM.get_data import get_data() and from ExoRM.initialize_model() import initialize_model(). A plot of the model will be shown for you to see. Both are stored in your OS's Application Data for ExoRM. ExoRM provides built in functions to retrieve from this folder.

Usage of the model requires initializiation of the class and loading of the trace from a .nc file.

Note that all files saved are located in /Users/<username>/Library/Application Support/ExoRM for macOS and C:\Users\<username>\AppData\Local\ExoRM\ExoRM for windows.

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([...]).

Uncertainty (upper and lower bounds) can be accessed from predict_full and predict_full_liner.

An example is seen in the example.ipynb. Deep analysis is seen in comparison.ipynb, showing statistical results and a comparison with Forecaster. Those use additional libraries for visualization and statistics (seaborn and SciPy).

Additional notes

ExoRM has an implementation of Forecaster for according to the NASA Exoplanet Archive.

Forecaster: https://github.com/chenjj2/forecaster NASA Exoplanet Archive implementation: https://exoplanetarchive.ipac.caltech.edu/docs/pscp_calc.html

License

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

Metadata

Release files for ExoRM 4.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ExoRM 4.0.6
File Size Uploaded
exorm-4.0.6.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ExoRM 4.0.6
File Interpreter ABI Platform
exorm-4.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / exorm-4.0.6.tar.gz

Download URL exorm-4.0.6.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
94e317db723b26ff1f2850166a1dcef44d3745a01974a8ca8987af95ba7f185e
BLAKE2b-256 checksum
How to use checksums
ec9de10f1631b3375db30b25751995734032b215103c0df833db8998fd4422a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / exorm-4.0.6-py3-none-any.whl

Download URL exorm-4.0.6-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bbd85cdec45540af2c6da1cdb052d46f16a6bc38ea26b0efcdd503efdd572e7
BLAKE2b-256 checksum
How to use checksums
0e59572855bd0025f5ce8b33072163694b5ca8a5df2c3865e4e6fea139fd25db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

4.0.6 This release

2 release files

4.0.5

2 release files

4.0.4

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.0

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.9

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.9

2 release files

2.2.8

2 release files

2.2.7

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page