Metadata-Version: 2.1
Name: ethraid
Version: 0.1.106
Summary: Characterize long-period companions using RV trends, astrometric accelerations, and direct imaging
Home-page: 
Author: Judah Van Zandt
Author-email: judahvz@astro.ucla.edu


# Ethraid

Characterize long-period companions with partial orbits.

[![Powered by radvel](https://img.shields.io/badge/powered_by-radvel-EB5368.svg?style=flat)](https://radvel.readthedocs.io/en/latest/)

## Environment
### Create new environment with python 3.7
- *\$ conda create --name trends_env python=3.7*
- *\$ conda activate trends_env*

## Download using pip
- *\$ pip install ethraid*
- If the installation fails, try
1) Upgrading pip: *\$ curl https://bootstrap.pypa.io/get-pip.py | python*
2) Installing cython: *\$ pip install cython*

## Example CLI usage
### Run orbit fits using parameters in configuration file
- *\$ ethraid run -cf path/to/ethraid/example_config_files/config_191939.py*
### Load and plot saved results
- *\$ ethraid plot -cf ethraid/config_files/test1.py -rfp results/test1/test1_raw.h5 -gn 100*
### Print 95\% mass and semi-major axis confidence intervals based on derived posterior
- *\$ ethraid less -rfp results/test1/test1_raw.h5 -gn 100*

## If downloading repo
### Install dependencies using requirements.txt 
- *\$ pip install -r requirements.txt*

### Build code from top level of repo
- *\$ cd trends/*
- *\$ python setup.py build_ext --inplace*

## Use api_run.py as a reference
- *\$ python api_run.py*
