Skip to content

PyAutoLabs/PyAutoLens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22,898 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAutoLens-JAX: Open-Source Strong Lensing

Colab Documentation Status Tests Build Code Style: black JOSS Zenodo DOI arXiv Project Status: Active Python Versions PyPI Version

Installation Guide | readthedocs | Introduction on Colab | HowToLens

When two or more galaxies are aligned perfectly down our line-of-sight, the background galaxy appears multiple times.

This is called strong gravitational lensing and PyAutoLens makes it simple to model strong gravitational lenses, using JAX to accelerate lens modeling on GPUs.

🤖 AI-assisted use: you can also learn and drive PyAutoLens with AI — either a browser chat assistant (ChatGPT, Claude) pointed at autolens_assistant, or a fully agentic coding tool (Claude Code, Codex) that runs lens modeling end-to-end on your machine. See the Three Ways to Learn PyAutoLens section below.

Getting Started

The following links are useful for new starters:

Three Ways to Learn PyAutoLens

There are three ways to learn how to use PyAutoLens, which you can freely mix and match:

  1. Manual navigation — read the workspace guides yourself, starting from the new user guide and the start_here notebooks, which are organised by lens scale and dataset type.
  2. AI chat assistant — ask questions to a conversational AI assistant such as ChatGPT or Claude in the browser. Point it at the autolens_assistant repository and ask a question like "How do I model a galaxy-scale strong lens observed with Hubble imaging?".
  3. Fully agentic AI — drive PyAutoLens end-to-end with an agentic coding tool such as Claude Code or Codex together with autolens_assistant. These can inspect your data, write and run scripts, and manage a lens-modeling project directly on your machine.

See autolens_assistant for more on the AI-assisted options (2 and 3).

Community & Support

Support for PyAutoLens is available via our Slack workspace, where the community shares updates, discusses gravitational lensing analysis, and helps troubleshoot problems.

Slack is invitation-only. If you'd like to join, please send an email requesting an invite.

For installation issues, bug reports, or feature requests, please raise an issue on the GitHub issues page.

HowToLens

For users less familiar with gravitational lensing, Bayesian inference and scientific analysis you may wish to read through the HowToLens lectures. These teach you the basic principles of gravitational lensing and Bayesian inference, with the content pitched at undergraduate level and above.

A complete overview of the lectures is provided on the HowToLens readthedocs page, and the notebooks themselves live in the PyAutoLabs/HowToLens repository.

Citations

Information on how to cite PyAutoLens in publications can be found on the citations page.

Contributing

Information on how to contribute to PyAutoLens can be found on the contributing page.

Hands on support for contributions is available via our Slack workspace, again please email to request an invite.

About

PyAutoLens: Open-Source Strong Gravitational Lensing

Topics

Resources

License

Code of conduct

Contributing

Stars

184 stars

Watchers

11 watching

Forks

Packages

 
 
 

Contributors