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.2.tar.gz (99.2 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.2-py3-none-any.whl (117.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astroemperor-1.0.2.tar.gz
  • Upload date:
  • Size: 99.2 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.2.tar.gz
Algorithm Hash digest
SHA256 3961ffbd60b846024ea3f0c59d9a41d1077941e48f66bbcd158de02a9a510890
MD5 4646b0d2949ed555e93601eadb121cf3
BLAKE2b-256 209275b63c9374dae2c34aae3f06e44f853c7a0dc02714ef03ce5e892f62d5b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astroemperor-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 117.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7cdad722328d6de58917ba843e2f36a48ca7c22a85235fcd844e35196f6011
MD5 c1445038804db245d7b0d1d368d5d570
BLAKE2b-256 b38580e72c27960c7f4af0838b53d2265c66eee3c31f5befa69de9fa4b0e71c8

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