/microlensing

Gravitational microlensing

Primary LanguagePythonMIT LicenseMIT

microlensing

ascl:1704.014

Getting Started

Installation

To install the current development version of the microlensing package from source:

$ git clone https://github.com/ArnaudCassan/microlensing.git
$ pip install --user microlensing/

(you may not need the --user option)

Quadrupolar and Hexadecapolar approximations of binary-lens magnification

Compute the binary-lens magnification for a: point-source (A0), quadrupole (A2) and Hexadecapole (A4) approximations using the method by Cassan (2017).

from microlensing import multipoles
multipoles.example()

Q factors entering the expansion of z(zeta) of the lens equation

Compute the Q_(p-n,n) factors (p>=3) from Cassan (2017). This function is currently working for python 2 only.

from microlensing import Rkp
Rkp.Q(3)

License

This software is licensed under the MIT License. See the LICENSE file for details.