Skip to main content

Fast and painless exoplanet transit light curve modelling.

Project description

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

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

pytransit-2.6.17.tar.gz (10.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytransit-2.6.17-py3-none-any.whl (10.9 MB view details)

Uploaded Python 3

File details

Details for the file pytransit-2.6.17.tar.gz.

File metadata

  • Download URL: pytransit-2.6.17.tar.gz
  • Upload date:
  • Size: 10.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pytransit-2.6.17.tar.gz
Algorithm Hash digest
SHA256 e6f7a54ce46418d3811e58b39d8788b713c4ff887c4c642d2ec40ae8292c8ce7
MD5 e2e8b05784704319ce6cfa87649a2102
BLAKE2b-256 f3bfbfbabee34f1cf323f146df5b51fb13de60151a8a8fd53c0fdce9df77bae9

See more details on using hashes here.

File details

Details for the file pytransit-2.6.17-py3-none-any.whl.

File metadata

  • Download URL: pytransit-2.6.17-py3-none-any.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pytransit-2.6.17-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee3ab3a7d00bea3c85dd1a2d92041e6d1fec038c96aa0d548c0eaec9659039e
MD5 e58f8ad426fb2d56a3308a42837e73d5
BLAKE2b-256 24d936beb6000205af4e0c27a0d428196588bc83b1f3dc8a963f2fa38f0188f7

See more details on using hashes here.

Supported by

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