{"id":13544496,"url":"https://github.com/hpparvi/PyTransit","last_synced_at":"2025-04-02T14:31:20.834Z","repository":{"id":5630739,"uuid":"6838892","full_name":"hpparvi/PyTransit","owner":"hpparvi","description":"Fast and easy exoplanet transit light curve modelling.","archived":false,"fork":false,"pushed_at":"2024-05-01T20:22:32.000Z","size":38205,"stargazers_count":95,"open_issues_count":5,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-22T04:31:38.129Z","etag":null,"topics":["astronomy","astrophysics","exoplanet","exoplanets","light-curve-models","python","transit-model","transiting-exoplanets"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"RSpace/spree-heroku","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpparvi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-11-24T11:08:39.000Z","updated_at":"2024-05-31T09:31:08.806Z","dependencies_parsed_at":"2023-01-13T15:00:20.307Z","dependency_job_id":"29115823-ca89-4879-87f9-4d64f844bfbd","html_url":"https://github.com/hpparvi/PyTransit","commit_stats":{"total_commits":745,"total_committers":4,"mean_commits":186.25,"dds":0.4577181208053691,"last_synced_commit":"57700161a005c09cf652b8f600c1ae32bcac9db9"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpparvi%2FPyTransit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpparvi%2FPyTransit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpparvi%2FPyTransit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpparvi%2FPyTransit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpparvi","download_url":"https://codeload.github.com/hpparvi/PyTransit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246832250,"owners_count":20841141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","astrophysics","exoplanet","exoplanets","light-curve-models","python","transit-model","transiting-exoplanets"],"created_at":"2024-08-01T11:00:50.171Z","updated_at":"2025-04-02T14:31:15.821Z","avatar_url":"https://github.com/hpparvi.png","language":"Jupyter Notebook","funding_links":[],"categories":["Analysis \u0026 Modeling","Repositories","Tools \u0026 Software"],"sub_categories":["Other","Data Analysis"],"readme":"PyTransit\n=========\n\n[![Licence](http://img.shields.io/badge/license-GPLv2-blue.svg?style=flat)](http://www.gnu.org/licenses/gpl-2.0.html)\n[![MNRAS](https://img.shields.io/badge/MNRAS-10.1093%2Fmnras%2Fstv894-blue.svg)](http://mnras.oxfordjournals.org/content/450/3/3233)\n[![arXiv](http://img.shields.io/badge/arXiv-1504.07433-blue.svg?style=flat)](http://arxiv.org/abs/1504.07433)\n[![ASCL](https://img.shields.io/badge/ASCL-A1505.024-blue.svg?style=flat)](http://ascl.net/1505.024)\n[![DOI](https://zenodo.org/badge/5871/hpparvi/PyTransit.svg)](https://zenodo.org/badge/latestdoi/5871/hpparvi/PyTransit)\n\n*PyTransit: fast and versatile exoplanet transit light curve modelling in Python.* PyTransit provides a set of optimised\ntransit models with a unified API that makes modelling complex sets of heterogeneous light curve (nearly) as easy as \nmodelling individual transit light curves. The models are optimised with Numba which allows for model evaluation speeds\nparalleling Fortran and C-implementations but with hassle-free platform-independent multithreading.\n\nThe package has been under continuous development since 2009, and is described in [Parviainen (2015)](http://arxiv.org/abs/1504.07433), \n[Parviainen (2020a)](https://ui.adsabs.harvard.edu/abs/2020MNRAS.499.1633P/abstract), and [Parviainen \u0026 Korth (2020b)](https://ui.adsabs.harvard.edu/abs/2020MNRAS.499.3356P/abstract). \n\n\n```Python\nfrom pytransit import RoadRunnerModel\n\ntm = RoadRunnerModel('quadratic')\ntm.set_data(times)\n\ntm.evaluate(k=0.1, ldc=[0.2, 0.1], t0=0.0, p=1.0, a=3.0, i=0.5*pi)\n\ntm.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)\n\ntm.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]],\n            t0=[0.0, 0.01], p=[1, 1], a=[3.0, 2.9], i=[.5*pi, .5*pi])\n```\n\n![](doc/source/basic_example_1.svg)\n![](doc/source/basic_example_2.svg)\n![](doc/source/basic_example_3.svg)\n\n\n\n  \n## Examples and tutorials\n\n### EMAC Workshop introduction video\n\n[![EMAC Workshop PyTransit introduction video](video1.png)](https://youtu.be/bLnxkFNrMDQ?si=OTjr4kUGK1kkhkLC)\n\n### RoadRunner transit model\n\nRoadRunner [(Parviainen, 2020a)](https://ui.adsabs.harvard.edu/abs/2020MNRAS.499.1633P/abstract) is a fast exoplanet transit model that can use any radially symmetric function to model stellar limb darkening \nwhile still being faster to evaluate than the analytical transit model for quadratic limb darkening.\n\n- [RRModel example 1](https://github.com/hpparvi/PyTransit/blob/dev/doc/source/notebooks/models/roadrunner/roadrunner_model_example_1.ipynb) \n  shows how to use RoadRunner with the included limb darkening models.\n- [RRModel example 2](https://github.com/hpparvi/PyTransit/blob/dev/doc/source/notebooks/models/roadrunner/roadrunner_model_example_2.ipynb)\n  shows how to use RoadRunner with your own limb darkening model.\n- [RRModel example 3](https://github.com/hpparvi/PyTransit/blob/dev/doc/source/notebooks/models/roadrunner/roadrunner_model_example_3.ipynb) \n  shows how to use an LDTk-based limb darkening model LDTkM with RoadRunner.\n\n### Transmission spectroscopy transit model\n\nTransmission spectroscopy transit model (TSModel) is a special version of the RoadRunner model dedicated to modelling \ntransmission spectrum light curves. \n \n - [TSModel Example 1](https://github.com/hpparvi/PyTransit/blob/dev/notebooks/roadrunner/tsmodel_example_1.ipynb)\n\n\n## Documentation\n\nRead the docs at [pytransit.readthedocs.io](https://pytransit.readthedocs.io).\n\nInstallation\n------------\n### PyPI\n\nThe easiest way to install PyTransit is by using `pip`\n\n    pip install pytransit\n\n### GitHub\n\nClone the repository from github and do the normal python package installation\n\n    git clone https://github.com/hpparvi/PyTransit.git\n    cd PyTransit\n    pip install .\n\n\nCiting\n------\n\nIf you use PyTransit in your reserach, please cite\n\nParviainen, H. MNRAS 450, 3233–3238 (2015) (DOI:10.1093/mnras/stv894).\n\nor use this ready-made BibTeX entry\n\n    @article{Parviainen2015,\n      author = {Parviainen, Hannu},\n      doi = {10.1093/mnras/stv894},\n      journal = {MNRAS},\n      number = {April},\n      pages = {3233--3238},\n      title = {{PYTRANSIT: fast and easy exoplanet transit modelling in PYTHON}},\n      url = {http://mnras.oxfordjournals.org/cgi/doi/10.1093/mnras/stv894},\n      volume = {450},\n      year = {2015}\n    }\n\nAuthor\n------\n  - [Hannu Parviainen](mailto:hpparvi@gmail.com), Instituto de Astrofísica de Canarias\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpparvi%2FPyTransit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpparvi%2FPyTransit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpparvi%2FPyTransit/lists"}