Skip to main content

PyTransit

Licence MNRAS arXiv ASCL DOI

PyTransit: fast and versatile exoplanet transit light curve modelling in Python. PyTransit provides a set of optimised transit models with a unified API that makes modelling complex sets of heterogeneous light curve (nearly) as easy as modelling individual transit light curves. The models are optimised with Numba which allows for model evaluation speeds paralleling Fortran and C-implementations but with hassle-free platform-independent multithreading.

The package has been under continuous development since 2009, and is described in Parviainen (2015), Parviainen (2020a), and Parviainen & Korth (2020b).

from pytransit import RoadRunnerModel

tm = RoadRunnerModel('quadratic')
tm.set_data(times)

tm.evaluate(k=0.1, ldc=[0.2, 0.1], t0=0.0, p=1.0, a=3.0, i=0.5*pi)

tm.evaluate(k=[0.10, 0.12], ldc=[[0.2, 0.1], [0.5, 0.1]], t0=0.0, p=1.0, a=3.0, i=0.5*pi)

tm.evaluate(k=[[0.10, 0.12], [0.11, 0.13]], ldc=[[0.2, 0.1], [0.5, 0.1],[0.4, 0.2, 0.75, 0.1]],
            t0=[0.0, 0.01], p=[1, 1], a=[3.0, 2.9], i=[.5*pi, .5*pi])

Examples and tutorials

EMAC Workshop introduction video

EMAC Workshop PyTransit introduction video

RoadRunner transit model

RoadRunner (Parviainen, 2020a) is a fast exoplanet transit model that can use any radially symmetric function to model stellar limb darkening while still being faster to evaluate than the analytical transit model for quadratic limb darkening.

  • RRModel example 1 shows how to use RoadRunner with the included limb darkening models.
  • RRModel example 2 shows how to use RoadRunner with your own limb darkening model.
  • RRModel example 3 shows how to use an LDTk-based limb darkening model LDTkM with RoadRunner.

Transmission spectroscopy transit model

Transmission spectroscopy transit model (TSModel) is a special version of the RoadRunner model dedicated to modelling transmission spectrum light curves.

Documentation

Read the docs at pytransit.readthedocs.io.

Installation

PyPI

The easiest way to install PyTransit is by using pip

pip install pytransit

GitHub

Clone the repository from github and do the normal python package installation

git clone https://github.com/hpparvi/PyTransit.git
cd PyTransit
pip install .

Citing

If you use PyTransit in your reserach, please cite

Parviainen, H. MNRAS 450, 3233–3238 (2015) (DOI:10.1093/mnras/stv894).

or use this ready-made BibTeX entry

@article{Parviainen2015,
  author = {Parviainen, Hannu},
  doi = {10.1093/mnras/stv894},
  journal = {MNRAS},
  number = {April},
  pages = {3233--3238},
  title = {{PYTRANSIT: fast and easy exoplanet transit modelling in PYTHON}},
  url = {http://mnras.oxfordjournals.org/cgi/doi/10.1093/mnras/stv894},
  volume = {450},
  year = {2015}
}

Author

Metadata

Release files for PyTransit 2.6.12

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

Source distribution (sdist)

Source distribution for PyTransit 2.6.12
File Size Uploaded Provenance Actions
pytransit-2.6.12.tar.gz 10.7 MB Without provenance Details for pytransit-2.6.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyTransit 2.6.12
File Interpreter ABI Platform Actions
PyTransit-2.6.12-py3-none-any.whl Python 3 none any Details for PyTransit-2.6.12-py3-none-any.whl

Total release size: 21.6 MB

Release files / pytransit-2.6.12.tar.gz

Download URL pytransit-2.6.12.tar.gz
Size 10.7 MB
Tags Source
SHA-256 checksum
How to use checksums
3b85c08410be3a0ea09a90f96c68a63e71bcbecae5e8d610c4b824e512cff800
BLAKE2b-256 checksum
How to use checksums
ec0e707469a4d4ddf1970cfe3abb2c3f1a780a371b162e71ec81b895fc4008e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / PyTransit-2.6.12-py3-none-any.whl

Download URL PyTransit-2.6.12-py3-none-any.whl
Size 10.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e918fb844c15bf77d1e5a3fc9c46adbae0aa582b271369ceac2d7350ed734865
BLAKE2b-256 checksum
How to use checksums
abdc858e89c27d3a667ba6fa56d7f4dfb30ee2d16f1169e24b9cb558e30c851e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for PyTransit 2.6.12

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.6.12 This release

2 release files No provenance

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