Metadata-Version: 2.4
Name: BAGLE
Version: 1.0.0
Summary: BAGLE (Bayesian Analysis of Gravitational Lensing Events) is a package to model and fit microlensing events.
Author: T. Dex Bhadra, Michael Medford, Casey Lam, Macy Huston, Edward Broadberry, Jeff Chen, Andrew Scharf, Sean Terry, Nijaid Arredondo
Author-email: Jessica Lu <jlu.astro@berkeley.edu>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/MovingUniverseLab/BAGLE_Microlensing
Project-URL: Issues, https://github.com/MovingUniverseLab/BAGLE_Microlensing/issues
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE.txt
Requires-Dist: numpy>=1.24
Requires-Dist: pymultinest
Requires-Dist: matplotlib
Requires-Dist: astropy>=5.3
Requires-Dist: celerite>=0.4.2
Requires-Dist: scipy>=1.10
Dynamic: license-file

# 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](https://bagle.readthedocs.io/en/latest/)

## 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](./BAGLE_TUTORIAL.ipynb)
