Skip to content

ArnaudCassan/microlensing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.