Microlsening analysis package.
Project description
[!WARNING] Runing pyLIMA in multiprocessing...
The latest version of pyLIMA applies the multiprocessing library to parallelize aspects of its model fitting processes in order to optimize for speed. This has been tested and works under Ubuntu Linux with Python 3.11. Users should be aware that the multiprocessing library uses a different method ('spawn') to start threads on the Mac and Windows platforms compared to the method used on Linux ('fork'), as the fork method is considered to be unsafe on these platforms. Unfortunately, this has meant that pyLIMA crashes if run under the latest version of Python (3.11) under a Mac (and likely under Windows), due to the outstanding issue with the multiprocessing library. We are currently investigating a fix for this issue. In the interim we recommend using an earlier version of Python with the latest pyLIMA.
pyLIMA
Authors : Etienne Bachelet (etibachelet@gmail.com), Rachel Street (rstreet@lcogt.net), Valerio Bozza (valboz@sa.infn.it), Yiannis Tsapras (ytsapras@ari.uni-heidelberg.de) and friends!
pyLIMA is the first open source software for modeling microlensing events. It should be flexible enough to handle your data and fit it. You can also practice by simulating events.
Documentation and Installation
Required materials
You need pip and python, that's it!
Installation and use
>>> pip install pyLIMA
You should be able to load pyLIMA as general module :
import pyLIMA
print(pyLIMA.__version__)
Examples
Examples can be found in the pyLIMA directory after cloning this repository. More details can be found in the Documentation There is two version for each examples, one using Jupyter notebook or classic Python file.
Example_1 : HOW TO FIT MY DATA?
Example_2 : HOW TO USE YOUR PREFERED PARAMETERS?
Example_3 : HOW TO SIMULATE EVENST?
Example_4 : HOW TO USE YOUR OWN FITTING ROUTINES?
Example_5 : HOW TO FIT PARALLAX?
How to contribute?
Want to contribute? Bug detections? Comments? Please email us (etibachelet@gmail.com) or raise an issue (recommended).
Citations
Please cite Bachelet et al. 2017 (and soon pyLIMA-II Bachelet et al.2025). The BibTeX entry for the paper is::
@ARTICLE{2017AJ....154..203B, author = {{Bachelet}, E. and {Norbury}, M. and {Bozza}, V. and {Street}, R.}, title = "{pyLIMA: An Open-source Package for Microlensing Modeling. I. Presentation of the Software and Analysis of Single-lens Models}", journal = {\aj}, keywords = {gravitational lensing: micro}, year = 2017, month = nov, volume = {154}, number = {5}, eid = {203}, pages = {203}, doi = {10.3847/1538-3881/aa911c}, adsurl = {https://ui.adsabs.harvard.edu/abs/2017AJ....154..203B}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pylima-1.9.7.tar.gz
.
File metadata
- Download URL: pylima-1.9.7.tar.gz
- Upload date:
- Size: 19.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49cd7fe163a9837ec9f78ca64d9d1220bddc4617bdb51193a7bb5f40ec1e5acc |
|
MD5 | c7decc47dda3d31a90931dd5439f4b3a |
|
BLAKE2b-256 | 9aa1b653d3f3ffc51af30e7363f0520cde91f3def084d5a1a5f0cc0e4e96983e |
File details
Details for the file pyLIMA-1.9.7-py3-none-any.whl
.
File metadata
- Download URL: pyLIMA-1.9.7-py3-none-any.whl
- Upload date:
- Size: 19.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a283968f84f5e69ea4e1e62c1341d50111e6838fe93baaf2442a863f974f2502 |
|
MD5 | af18564c58fc4578d69339f8b7fa389b |
|
BLAKE2b-256 | 407232757ba7c90a70cacd6ca00aa4d0861e7a0f48df8619456035ec85fcb31c |