Skip to main content

TTVFast

Author:

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

https://img.shields.io/pypi/v/ttvfast.svg?maxAge=2592000 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

Metadata

Release files for ttvfast 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ttvfast 0.3.0
File Size Uploaded Provenance
ttvfast-0.3.0.tar.gz 56.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ttvfast 0.3.0
File Interpreter ABI Platform
ttvfast-0.3.0-cp35-cp35m-macosx_10_11_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64 Details

Total release size: 79.6 kB

Release files / ttvfast-0.3.0.tar.gz

Download URL ttvfast-0.3.0.tar.gz
Size 56.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c024dd05ec0d7972c2974a4aeed5583b9b3cd3feb8642adc1e8266d53057b843
BLAKE2b-256 checksum
How to use checksums
86b83316358c853f0b5c776bbe9dc3ea8c93103345f82f0f9a9f68a086e36551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ttvfast-0.3.0-cp35-cp35m-macosx_10_11_x86_64.whl

Download URL ttvfast-0.3.0-cp35-cp35m-macosx_10_11_x86_64.whl
Size 23.4 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
377e577ece208d4e7204d10af5d059b5627fefffd1559d54b9c6bc46774b860b
BLAKE2b-256 checksum
How to use checksums
d187445ff204cf26f2d141837fa6db63ec96a106295e7959a96e5a082dc2ee09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ttvfast 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page