dart_board

dart_board makes it easy to model the formation and evolution of binary stars. It acts as a statistical wrapper around rapid binary evolution codes.

This documentation will provide a guide to using our code, but for details on the statistical approach, some tests, and various applications, check out our paper.

https://img.shields.io/badge/GitHub-astroJeff%2Fdart_board-blue.svg?style=flat https://readthedocs.org/projects/dart-board/badge/?version=latest http://img.shields.io/badge/license-MIT-blue.svg?style=flat http://img.shields.io/badge/arXiv-1710.11030-orange.svg?style=flat https://zenodo.org/badge/86565955.svg

a basic example

To generate a population of high mass X-ray binaries (HMXB), use the following example

import numpy as np
import dart_board
import pybse

# Set up the sampler
pub = dart_board.DartBoard("HMXB",
                           evolve_binary=pybse.evolve,
                           nwalkers=320)

# Initialize the walkers
pub.aim_darts()

# Run the sampler
pub.throw_darts(nburn=20000, nsteps=100000)

# Save the chains
np.save("HMXB_posterior_chains.npy", pub.chains)

getting started

You will want to start with the installation guide to get dart_board running. Until we have our quickstart tutorial completed, the documentation we provide below is probably the best way to learn how to use dart_board for your needs. For more concrete examples, we provide the source code used to generate all the examples and figures in our paper. If you have problems, feel free to label an issue.

changelog

Version 1.0.0 - Feb. 2018