Skip to content
from IPython.display import Image, display
import numpy as np
import astroemperor as emp

np.random.seed(1234)

Quickstart

We will start with a simple evaluation of 51 Peg. The data for this system can be downloaded from the GitHub.

Working Directory

The working directory must have a folder named datafiles, where the RVs will be read, and a folder called datalogs, where all relevant results will be stored. Below is an example of a work directory:

๐Ÿ“‚working_directory
 โ”ฃ ๐Ÿ“œmini_test.py
 โ”ฃ ๐Ÿ“œmy_scripts.py
 โ”ฃ ๐Ÿ“‚datafiles
 โ”ƒ โ”ฃ ๐Ÿ“‚51Peg
 โ”ƒ โ”ƒ โ”— ๐Ÿ“‚RV
 โ”ƒ โ”ƒ โ”ƒ โ”— ๐Ÿ“œ51peg.vels
 โ”ฃ ๐Ÿ“‚datalogs
 โ”ƒ โ”ฃ ๐Ÿ“‚51Peg
 โ”ƒ โ”ƒ โ”— ๐Ÿ“‚run_1

Running the code

We set up the basics for the run to check that everything is working as intended. The results won't be conclussive since this is a very short run. Feel free to explore the results in the run_1 folder!

sim = emp.Simulation()

sim.set_engine('reddemcee')  # sets the engine
sim.engine_config['setup'] = [2, 100, 500, 1]  # ntemps, nwalkers, nsweeps, nsteps
sim.load_data('51Peg')  # read from ./datafiles/
sim.plot_trace['plot'] = False  # to speed up the test

sim.autorun(1, 1)  # (from=1, to=1): just 1 keplerian