{ "info": { "author": "Filipe Pereira", "author_email": "filipe.pereira@astro.up.pt", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# gptransits\n\n**Fit planetary transits and stellar signals at the same time with the help of gaussian processes**\n\n## Installation\nAll python dependencies necessary for gptransits are available in pip (one of the package dependencies requires numpy to be installed beforehand). These can be seen in [setup.py](https://github.com/Fill4/gptransits/tree/master/setup.py).\n\n*gptransits* can be installed from pip:\n~~~ bash\npip install gptransits\n~~~\nOr from the source:\n~~~ bash\ngit clone https://github.com/Fill4/gptransits.git\ncd gptransits\npython setup.py install\n~~~\n\n## Getting started\nScript template (or ipython/jupyter notebook):\n~~~ python\nimport gptransits\n\nmodel = gptransits.Model(\"lightcurve_file.txt\", \"config_file.py\")\nmodel.run()\nmodel.analysis(plot=True, fout=\"results_file.txt\")\n~~~\n\nThe model is initialized by providing a light curve file and a configuration file.\n~~~ python\nmodel = gptransits.Model(\"lightcurve_file.txt\", \"config_file.py\")\n~~~\n\nThe configuration file follows the structure in config_template.py. The available settings options can be seen in [settings.py](https://github.com/Fill4/gptransits/tree/master/gptransits/settings.py). \nThe light curve file follows the format: \n~~~ \n# time (days) flux (frac) flux_err (frac)\n0.000000000000000000e+00 9.995755553299999763e-01 5.522560000000000197e-05\n2.043337615740740618e-02 9.992535114099999616e-01 5.521756000000000196e-05\n4.086675347222221838e-02 9.992965459599999489e-01 5.521029000000000160e-05\n~~~\n\nRunning the MCMC algorithm to sample the posterior:\n~~~ python\nmodel.run()\n~~~\n\n\nAnalysis calls a collection of functions that evaluate the MCMC convergence:\n~~~ python\nmodel.analysis(plot=True, fout=\"results_file.txt\")\n~~~\nThe plot flag defines if the analysis also creates some plots of interest, in a created figures folder. \nThe fout flag, if defined, defines the file where the calculated results for the model parameters are saved.\n\nSome examples ready to be run are available in the [examples](https://github.com/Fill4/gptransits/tree/master/examples) folder. \nEach folder has a light curve and a configuration file. Light curve files have the .lc extension. \nThe output folder saves the chain and posterior probabilities from emcee in case the save flag is set in the configuration. \nThe figures folder holds the plots from the analysis function.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Fill4/gptransits", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gptransits", "package_url": "https://pypi.org/project/gptransits/", "platform": "", "project_url": "https://pypi.org/project/gptransits/", "project_urls": { "Homepage": "https://github.com/Fill4/gptransits" }, "release_url": "https://pypi.org/project/gptransits/1.0/", "requires_dist": [ "numpy", "batman-package", "pybind11", "scipy", "matplotlib", "tqdm", "corner", "astropy (>=3.0.0)", "emcee (==3.0rc2)", "celerite (==0.3.0)" ], "requires_python": ">=3.6", "summary": "Fit planetary transits and stellar signals at the same time with the help of gaussian processes", "version": "1.0" }, "last_serial": 5741820, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "92cf3cfbf2c2523444669764a79474b1", "sha256": "3bc20f8db447e569619a29f2b5d6186836f07bb094b127ec8d331ea62271071d" }, "downloads": -1, "filename": "gptransits-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "92cf3cfbf2c2523444669764a79474b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 27535, "upload_time": "2019-08-28T10:26:54", "url": "https://files.pythonhosted.org/packages/84/03/d1b2c65fb6cf1f6b2743ffcd71fb8054bbe1f43f02580535b919e54868b2/gptransits-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "924fedfc035c198ef8c91b6bb62470d5", "sha256": "efb856252278ebf33659b2d41ddecb00f5bc4c3bc399eb3b88f6b1474d3cb70d" }, "downloads": -1, "filename": "gptransits-1.0.tar.gz", "has_sig": false, "md5_digest": "924fedfc035c198ef8c91b6bb62470d5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 24903, "upload_time": "2019-08-28T10:26:57", "url": "https://files.pythonhosted.org/packages/17/f9/acc040b210386a8a7b3da1f8448169aa2af978d67e010c2958510beb86b3/gptransits-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92cf3cfbf2c2523444669764a79474b1", "sha256": "3bc20f8db447e569619a29f2b5d6186836f07bb094b127ec8d331ea62271071d" }, "downloads": -1, "filename": "gptransits-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "92cf3cfbf2c2523444669764a79474b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 27535, "upload_time": "2019-08-28T10:26:54", "url": "https://files.pythonhosted.org/packages/84/03/d1b2c65fb6cf1f6b2743ffcd71fb8054bbe1f43f02580535b919e54868b2/gptransits-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "924fedfc035c198ef8c91b6bb62470d5", "sha256": "efb856252278ebf33659b2d41ddecb00f5bc4c3bc399eb3b88f6b1474d3cb70d" }, "downloads": -1, "filename": "gptransits-1.0.tar.gz", "has_sig": false, "md5_digest": "924fedfc035c198ef8c91b6bb62470d5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 24903, "upload_time": "2019-08-28T10:26:57", "url": "https://files.pythonhosted.org/packages/17/f9/acc040b210386a8a7b3da1f8448169aa2af978d67e010c2958510beb86b3/gptransits-1.0.tar.gz" } ] }