Skip to main content

Flexible python exoplanet fitter

Project description

EMPEROR

Exoplanet Mcmc Parallel tEmpering for Rv Orbit Retrieval

Overview

EMPEROR (Exoplanet Mcmc Parallel tEmpering for Rv Orbit Retrieval), is a Python-based algorithm that automatically searches for signals in Radial Velocity timeseries (and also joint modelling with Astrometry), employing Markov chains and parallel tempering methods, convergence tests and Bayesian statistics, along with various noise models. A number of posterior sampling routines are available, focused on efficiently searching for signals in highly multi-modal posteriors. The code allows the analysis of multi-instrument and multi-planet data sets and performs model comparisons automatically to return the optimum model that best describes the data.

Make sure to check the documentation!

Why EMPEROR?

  • It's really simple to use
  • It has a series of configuration commands that will amaze you
  • Advanced Noise Model
  • Quite Flexible!

Dependencies

This code makes use of:

All of them can be easily installed with pip.

For additional capabilities, you can install:

Installation

Pip

In the console type

pip3 install astroEMPEROR

From Source

In the console type

git clone https://github.com/ReddTea/astroEMPEROR.git

Installation Verification

Download the tests folder and run test_basic.py to make sure everything works!

In terminal:

python test_basic.py

Quick Usage

We need to set up our working directory with two subfolders, datafiles and datalogs, the former for data input, the later for output.

📂working_directory
 ┣ 📜mini_test.py
 ┣ 📂datafiles
 ┃ ┣ 📂51Peg
 ┃ ┃ ┗ 📂RV
 ┃ ┃ ┃ ┗ 📜51peg.vels
 ┣ 📂datalogs
 ┃ ┣ 📂51Peg
 ┃ ┃ ┗ 📂run_1

Running the code is as simple as:

import astroemperor

sim = astroemperor.Simulation()

sim.set_engine('reddemcee')
sim.engine_config['setup'] = [2, 100, 500, 1]
sim.load_data('51Peg')  # read from ./datafiles/

sim.plot_trace['plot'] = False  # deactivate arviz plots
sim.autorun(1, 1)  # (from=1, to=1): just 1 keplerian

Outputs

All results can be found in the datalogs folder. You will see chain plots, posterior plots, histograms, phasefolded curves, the chain sample and more!

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

astroemperor-1.0.3.tar.gz (99.6 kB view details)

Uploaded Source

Built Distribution

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

astroemperor-1.0.3-py3-none-any.whl (118.1 kB view details)

Uploaded Python 3

File details

Details for the file astroemperor-1.0.3.tar.gz.

File metadata

  • Download URL: astroemperor-1.0.3.tar.gz
  • Upload date:
  • Size: 99.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for astroemperor-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8fb345a277134af1b18fe5358ddea9011efe5864bf20b5e7111c14d78e3f8101
MD5 59281e9833d8d1c43fc558628f0bc1d8
BLAKE2b-256 80c38c49dbe17659d89c10445f1778f9dde1978c69034324069497ce75163652

See more details on using hashes here.

File details

Details for the file astroemperor-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: astroemperor-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 118.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for astroemperor-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2b2ce682b8c99ac586542d2fb5f9e4f914b63b7814c1450b160e9ea221c6ba8
MD5 3eb6e6169b3c4944d59fea8b6efa71b6
BLAKE2b-256 5dcf904a7a6d983fa15948023edf35474abaaa6848d5c752f755beb8b8cc1301

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