Code Monkey home page Code Monkey logo

gigalens's Introduction

GIGA-Lens

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.

gigalens's People

Contributors

andigu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.