Skip to content

About

PyAutoLens examples, tutorials, and datasets

Topics

Resources

Code of conduct

Contributing

Stars

28 stars

Watchers

3 watching

Forks

Latest commit

 

History

1,149 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAutoLens Workspace

Example scripts and notebooks for modeling strong gravitational lenses with PyAutoLens. Start with an introductory example, then explore the tools for your own data.

Getting Started

Explore It Yourself

See Find Your Examples below to choose where to start.

Explore with AI

The PyAutoLens AI Assistant helps you learn lensing, run examples and analyse your own data through conversation. Visit its README for setup instructions and a starting prompt.

Find Your Examples

Examples are available as Python scripts in scripts/ and Jupyter notebooks in notebooks/.

Lens Scale

Galaxy, multi-galaxy, group and cluster lenses, with indicative Einstein radii.

For a single lens galaxy, choose your data type below. For larger systems, start with multi_galaxy/, group/ or cluster/.

Dataset Type

Choose the example for your observations. Each folder has a start_here example to get you going.

Imaging
A pixelated telescope image of a foreground galaxy surrounded by extended lensed arcs.
Fit images from Hubble, JWST and other telescopes with imaging/.
Interferometry
Radio dishes observing emission from a lensed galaxy.
Fit radio and submillimetre observations with interferometer/.
Multi-band Imaging
The same lens in three wavebands, with different relative brightness of the lens galaxy and arcs.
Fit several wavebands together with multi_dataset/.
Data Cubes
Separate spectral-channel images showing different parts of a lensed arc.
Fit spectral channels together with interferometer/features/datacube/.
Point Sources
Four compact lensed images around a foreground galaxy, with faint host-galaxy arcs.
Model lensed quasars and supernovae with point_source/.
Weak Lensing
A galaxy cluster with strong-lensing arcs near its centre and background galaxies tangentially stretched across the wider field.
Model the subtle shape distortions of many background galaxies, alone or combined with strong lensing, with weak/.

AI-generated illustrations (weak lensing rendered procedurally), not observations. Lens panels use different angular scales. See the new user guide for details.

Browse All Examples

I want to… Start here
Learn the API, customise models or inspect results Guides
Model a lens in imaging data Imaging
Model interferometer observations Interferometry
Fit observations in multiple wavebands Multiple datasets
Model lensed point sources Point sources
Model a lens with several main galaxies Multiple galaxies
Model a galaxy group Groups
Model a galaxy cluster Clusters
Explore weak lensing Weak lensing

Each folder has a README explaining its examples. You’ll find sample data in dataset/; analysis results are written to output/.

Learn Lensing

HowToLens teaches gravitational lensing and Bayesian inference through worked notebooks. Start here if you’re new to the subject or would like more explanation alongside the workspace examples.

Community and Contributing

Ask questions, suggest improvements and share your work in PyAutoLabs Discussions, or chat with us on Slack.

To contribute examples or explore community projects, visit the PyAutoLens community page.

Citations

If you use PyAutoLens in your research, see the citation guide.

License

See the PyAutoLens license.

About

PyAutoLens examples, tutorials, and datasets

Topics

Resources

Code of conduct

Contributing

Stars

28 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages