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.1.tar.gz (99.0 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.1-py3-none-any.whl (117.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astroemperor-1.0.1.tar.gz
  • Upload date:
  • Size: 99.0 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.1.tar.gz
Algorithm Hash digest
SHA256 a49affafd080d552181b91391ca0c39cd5fcf8771fc7d3ebbc4ae4d8c06db93c
MD5 a1cf34a699acb9eb7087784746dfe38b
BLAKE2b-256 10a9891164e744302654ab5c224b5837b0944bfb3b7b8698c34f5cc596124719

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astroemperor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 117.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2141f29d9e8ed6654a6f6f9f52674e8fdbefbe42c2c2f929494fcd27f48d66f8
MD5 2eaa6f1a5e87856433b71f93c9f9217f
BLAKE2b-256 8aa98c1ae36edcb17b5e669038f9445a98bbb24fc57b644c2a7c116bb23f8cb9

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