BAGLE (Bayesian Analysis of Gravitational Lensing Events) is a package to model and fit microlensing events.
Project description
BAGLE: Bayesian Analysis of Gravitational Lensing Events
BAGLE allows modeling of gravitational microlensing events both photometrically and astrometrically. Supported microlensing models include:
- PSPL: point-source, point-lens with (and without) parallax
- BSPL: binary-point-source, point-lens
- PSBL: point-source, binary-point-lens
- FSPL: finite-source, point-lens (minimal support... not well tested yet)
All models support fitting data with single or multi-band photometry only, astrometry only, or joint fitting of photometry and astrometry (recommended).
Documentation
The documentation to the BAGLE code can be found here
Installation Instructions
Clone the repo:
git clone https://github.com/ninjab3381/BAGLE_Microlensing.git
Install required modules:
Before you can execute the tests, you will need to install the following modules:
- pip3 install matplotlib
- pip3 install numpy
- pip3 install astropy
- pip3 install pytest
- pip3 install celerite
- pip3 install ephem
- pip3 install pymultinest
The above commands can also be executed as:
- python3 -m pip install <module name>
Run tests
Navigate to the BAGLE_Microlensing folder:
$ cd BAGLE_Microlensing/
Then run the tests using the following commands in the BAGLE_Microlensing folder:
- python3 -m pytest tests
or you can run the testing scripts individually:
- python3 -m pytest tests/test_model.py
- python3 -m pytest tests/test_model_fitter.py
- python3 -m pytest tests/testingmodels.py
Tutorial
A Jupyter Notebook tutorial to see some examples of how to use the code can be found here
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bagle-1.0.0.tar.gz.
File metadata
- Download URL: bagle-1.0.0.tar.gz
- Upload date:
- Size: 332.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed6ff7133fab82e86e3e51ff8a1e97488d3085426bea1b0e1cc94b30f2f2cb0
|
|
| MD5 |
9d5337ed02a4c879c969d2363d4caa5d
|
|
| BLAKE2b-256 |
0c900c81300df0bef24157e5c17ad686dd01f520910282f43c877fdbce7f1db6
|
File details
Details for the file bagle-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bagle-1.0.0-py3-none-any.whl
- Upload date:
- Size: 280.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd88bc2ba93b12fb9df5dce823ce1b81d2fab2998748ce4581c482918eb8280a
|
|
| MD5 |
d36f5b1e5eb45dbcfeef3ae799db7209
|
|
| BLAKE2b-256 |
9183fe4f803a5ada745ebba195b2119a2e7ab7c9234670a2b0db4d5881adada5
|