Skip to main content

Python wrapper to ttvfast

Project description

Author:

Simon Walker <s.r.walker101@googlemail.com>

https://travis-ci.org/mindriot101/ttvfast-python.svg?branch=master

A Python wrapper around Katherine Deck’s TTVFast C program (https://github.com/kdeck/TTVFast)

Installation

Install from pypi:

pip install ttvfast

or download and compile the code with

python setup.py build_ext --inplace

For the latest development version, install with pip:

pip install git+https://github.com/mindriot101/ttvfast.git

or clone from git:

git clone https://github.com/mindriot101/ttvfast-python.git
cd ttvfast-python
git submodule init
git submodule update # grabs code from TTVFast

then test that everything built properly using:

$ py.test
============================== test session starts ===============================
testing/test_lweiss.py .
testing/test_models.py ...
testing/test_python_api.py ...
testing/test_ttvfast.py ...

Usage

To compute the TTV properties for one or more planets:

  • build a ttvfast.models.Planet instance (see the class documentation for required parameters)

  • pass a list of the planets in the system to ttvfast.ttvfast along with:

    • the stellar mass in units of solar mass,

    • the start point of the integration in days,

    • the time step for the integration in days,

    • and the end point for integration in days.

The function ttvfast.ttvfast returns a dictionary containing positions and rv. The positions entry is a tuple of:

  1. a list of integer indices for which values correspond to which planet,

  2. a list of integers defining the epoch,

  3. a list of times,

  4. a list of rsky values, and

  5. a list of vsky values.

The optional rv_times parameter takes a list of RV times on which the RV is to be calculated. If so the rv entry in the output dictionary is populated with a list of RV values, and otherwise None.

For more details, see the original C module’s documentation: https://github.com/kdeck/TTVFast/blob/master/c_version/README

Citations

If you use this code, please cite Deck, Agol, Holman, & Nesvorny (2014), ApJ, 787, 132, arXiv:1403.1895.

-Katherine Deck, Eric Agol, Matt Holman, & David Nesvorny

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

ttvfast-0.0.4.tar.gz (69.5 kB view details)

Uploaded Source

Built Distributions

ttvfast-0.0.4-cp35-cp35m-macosx_10_5_x86_64.whl (21.3 kB view details)

Uploaded CPython 3.5mmacOS 10.5+ x86-64

ttvfast-0.0.4-cp27-cp27m-macosx_10_5_x86_64.whl (21.0 kB view details)

Uploaded CPython 2.7mmacOS 10.5+ x86-64

File details

Details for the file ttvfast-0.0.4.tar.gz.

File metadata

  • Download URL: ttvfast-0.0.4.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ttvfast-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0abb220928802e44a04af0f3db48d436cb727659fdcf91394c6b2ff1bab5adca
MD5 9a613226e0e59b72e20b0aff62022dea
BLAKE2b-256 2bac91638d7b53c68c5560ff7ea27f36cbf2b518108831d228646332492d6548

See more details on using hashes here.

File details

Details for the file ttvfast-0.0.4-cp35-cp35m-macosx_10_5_x86_64.whl.

File metadata

File hashes

Hashes for ttvfast-0.0.4-cp35-cp35m-macosx_10_5_x86_64.whl
Algorithm Hash digest
SHA256 da9cbdffeb24e44e187e9f475827fc9f8e843e53891ab4ae4b6c22654f39813d
MD5 f79e5a3228fc146c7ead50015115082a
BLAKE2b-256 a865a37f534363f29bd9803fa2680304dfead67e29eb68a29437fbb62c991a21

See more details on using hashes here.

File details

Details for the file ttvfast-0.0.4-cp27-cp27m-macosx_10_5_x86_64.whl.

File metadata

File hashes

Hashes for ttvfast-0.0.4-cp27-cp27m-macosx_10_5_x86_64.whl
Algorithm Hash digest
SHA256 59508947b031558c2baed8e1fac1504dd3011a304d59144b0ef0cb78d570d682
MD5 55c50a1e5e41d93a4bc3ec5bced1274c
BLAKE2b-256 3279ecadeb1d5e0a9230df40f8bbf27a44f6ac1d96c6390ff05cca6a1e45d3c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page