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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gigalens-0.1.8.tar.gz.

File metadata

  • Download URL: gigalens-0.1.8.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for gigalens-0.1.8.tar.gz
Algorithm Hash digest
SHA256 350083b35cf425abca89bf4c432c30c8bf125ec84b10e8a97d39614f48ef7466
MD5 a3378e8de37477704d845449546b3cae
BLAKE2b-256 5742f9feb97d525e7ddc2fa690c5766a46fa42c1d6460c17f9540936bfed4e20

See more details on using hashes here.

File details

Details for the file gigalens-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: gigalens-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 61.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for gigalens-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e5fea338d31ce723073b74ad80c98c305d7c50352d81f9101df23d65defe8eeb
MD5 11a3cd976165368e9d4e54b17131179f
BLAKE2b-256 4f8abd8a44568943f949c7840e8553cc2db0493c79f94166f9ffdb2bf4a748dc

See more details on using hashes here.

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