Skip to content

AzNOAOTares/pyLIMA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status DOI

pyLIMA

Authors : Etienne Bachelet, etibachelet@gmail.com Rachel Street, rstreet@lcogt.net Valerio Bozza, valboz@sa.infn.it Martin Norbury, mnorbury@lcogt.net and friends!

pyLIMA is an open source 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

Documentation

Required materials

Regular C/C++ and fortran compilers are required for packages installation

You also need SWIG

You need pip or you can install manually the required libraries Documentation

pyLIMA should now run both on python2 and python3 !

Installation and use

Clone the repository or download as a ZIP file. Then

python setup.py build_ext --build-lib=./pyLIMA/subroutines/VBBinaryLensingLibrary (and, not mandatory, python setup.py clean --all)

The install the required libraries with

pip install -r requirements.txt

This new procedure which should avoid the previous installations headaches! Successfully test on various UNIX, MAC and Windows! If you encounter any problems, please contact etibachelet@gmail.com.

Please use pyLIMA as a external module, by doing a global import :

import sys

sys.path.append(your-path-to-pyLIMA-directory)

from pyLIMA import whatyouneed

Examples

Examples can be found in your pyLIMA directory. Look on the documentation to learn how to run it. There is two version for each examples, one using Jupyter notebook (.ipynb) or classic Python file (.py).

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?

What can you do?

pyLIMA is now in beta!! Here is the status of implemented microlensing models:

Model Implemented Examples Fit Method Advice
Point-Source Point Lens (PSPL) Alt text Yes Levenberg-Marquardt (LM)
Finite-Source Point Lens (FSPL) Alt text Yes Levenberg-Marquardt (LM) or Differential Evolution (DE)
Double-Source Point Lens (DSPL) Alt text Yes Differential Evolution (DE)
Uniform-Source Binary Lens (USBL) Alt text No

pyLIMA can also treat Second Order effects :

Second-Order Effects Implemented Examples Fit Method Advice
Annual parallax Alt text No Levenberg-Marquardt (LM)
Terrestrial parallax Alt text No Levenberg-Marquardt (LM)
Space parallax Alt text No Levenberg-Marquardt (LM)
Orbital Motion Alt text No
Xallarap Alt text No

How to contribute?

Want to contribute? Bug detections? Comments? Please email us : etibachelet@gmail.com, rstreet@lcogt.net, valboz@sa.infn.it

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 83.3%
  • C++ 16.7%