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
Install required modules:
Before you can use BAGLE, you will need to install the following modules:
pip install numpy
pip install astropy
pip install matplotlib
pip install celerite
pip install ephem
pip install pymultinest
pip install Pyerfa
pip install pytest
pip install joblib
Install BAGLE from pip or conda (users) or GitHub (developers)
Preferred (on conda-forge):
conda install BAGLE
or
pip install BAGLE
or
git clone https://github.com/ninjab3381/BAGLE_Microlensing.git
Test your install by opening python and running:
import bagle
Tutorial
A Jupyter Notebook tutorial to see some examples of how to use the code can be found here
Developers
After installation of BAGLE source, 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
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
File details
Details for the file bagle-1.0.3.tar.gz.
File metadata
- Download URL: bagle-1.0.3.tar.gz
- Upload date:
- Size: 335.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938c98a24ded482e5d6fbb4f8455e4be04e3c047048beb10af088ba42946d7ab
|
|
| MD5 |
60e3e54a9fd57794b0633daaf6299007
|
|
| BLAKE2b-256 |
ffd8de8633db3afec67f71b78ba4df76efc785f8bcd53171c4e5e885b37fa251
|