GCMicrolensing
Tools for simulating gravitational microlensing events with single, binary, and triple lens systems. This package is under active development.
Installation
Prerequisites
This package requires a custom version of TripleLensing with modifications by Gregory Costa Cuautle. The installation process depends on how you obtained this package:
Option 1: From Source (Recommended)
If you cloned this repository, the custom TripleLensing is included and will be installed automatically:
git clone <repository-url>
cd Costa
pip install -e .
Option 2: Manual Installation
If you're installing from a distribution that doesn't include TripleLensing, you'll need to install it manually:
# First install GCMicrolensing
pip install GCMicrolensing
# Then install the custom TripleLensing (instructions to be provided)
# This requires the custom version with Greg's modifications
Usage
from GCMicrolensing.models import OneL1S, TwoLens1S, ThreeLens1S
# Create a single lens model
model = OneL1S(t0=2450000, tE=20, rho=0.001, u0_list=[0.1, 0.5, 1.0])
model.plot_light_curve()
Dependencies
- TripleLensing: Custom version with modifications by Gregory Costa Cuautle
- VBMicrolensing: For binary lens calculations
- Standard scientific Python stack: numpy, matplotlib, scipy, astropy, etc.
Documentation
See the docs/ directory for detailed documentation.
This project uses a regular Python packaging workflow. To install the
package and its minimal runtime dependencies, execute::
pip install .
The local TripleLensing library will be built and installed
automatically as part of this process.
For development a more feature rich environment can be created using the
environment.yml file.
Metadata
Release files for GCMicrolensing 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gcmicrolensing-0.1.0.tar.gz | 55.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcmicrolensing-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.2 MB
Release files / gcmicrolensing-0.1.0.tar.gz
| Download URL | gcmicrolensing-0.1.0.tar.gz |
|---|---|
| Size | 55.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9f89d12450130a767113375c316221c50599009b5be43e5d92755d311f3a278
|
|
BLAKE2b-256 checksum How to use checksums |
0eb83391e0aa391112003b559beb51966bf07e95961a0e43781409b5d38a56fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / gcmicrolensing-0.1.0-py3-none-any.whl
| Download URL | gcmicrolensing-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b40ffd7a97939a531dec20df48f5702a9be8f4911aa2325a84818792a1f852d7
|
|
BLAKE2b-256 checksum How to use checksums |
62cd4e52b3f4a72f91f7963910a0c9f468807f2ecd44bb9a07ef6896579cd05f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|