Skip to main content

Fast strong gravitational lens modeling

Project description

Latest PyPI version

Gradient Informed, GPU Accelerated Lens modelling (GIGA-Lens) is a package for fast Bayesian inference on strong gravitational lenses. For details, please see our paper. See here for our documentation.

Usage

Installation

GIGA-Lens can be installed via pip:

pip install gigalens

If pip notes an error after installation about conflicting dependencies, these can usually be safely ignored. If you wish to test the installation, tests can be run simply by running tox in the root directory.

If you don’t have access to institutional GPUs, one easy way is to use GPU on Google Colab. Please remember the very first cell should have !pip install gigalens. If you do have access to institutional GPUs, you can set up a notebook to run on GPU. For example, at NESRC, you can choose the kernel tensorflow-2.6.0, and include in the first cell: !pip install gigalens.

Requirements

The following packages are requirements for GIGA-Lens. However, !pip install gigalens is all you need to do. In fact, separately installing other packages can cause issues with subpackage dependencies. Some users may find it necessary to install PyYAML.

tensorflow>=2.6.0
tensorflow-probability>=0.15.0
lenstronomy==1.9.3
scikit-image==0.18.2
tqdm==4.62.0

The following dependencies are required by lenstronomy:

cosmohammer==0.6.1
schwimmbad==0.3.2
dynesty==1.1
corner==2.2.1
mpmath==1.2.1

Authors

GIGALens was written by Andi Gu.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gigalens-0.1.8.tar.gz (53.0 kB view hashes)

Uploaded Source

Built Distribution

gigalens-0.1.8-py3-none-any.whl (61.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page