When massive galaxies bend spacetime so dramatically that they act as cosmic telescopes, we witness one of Einstein’s most spectacular predictions in action. Gravitational lensing transforms distant galaxies into distorted arcs and multiple images, creating natural laboratories for probing dark matter, measuring cosmic distances, and studying galaxy formation. But extracting science from these warped cosmic mirages requires sophisticated modeling - enter lenstronomy.
This comprehensive Python package provides astronomers with a complete toolkit for strong gravitational lens analysis, from image simulation to parameter inference. Lenstronomy handles complex lens mass distributions, source galaxy morphologies, and point spread function effects while offering flexible modeling approaches including forward modeling, Bayesian inference, and neural network integration. Its modular architecture supports everything from single galaxy-galaxy lenses to galaxy cluster systems, with built-in support for time-delay cosmography and substructure analysis.
Researchers worldwide are using lenstronomy to tackle fundamental questions: measuring the Hubble constant through time-delay cosmography, constraining dark matter properties via lensing substructure, and decomposing quasar-host galaxy systems. With over 50 publications already leveraging its capabilities and active development supported by the broader AstroPy ecosystem, lenstronomy represents the convergence of cutting-edge astrophysics and robust scientific computing - making Einstein’s cosmic lenses accessible to the next generation of cosmological discoveries.
⭐ Stars: 212
💻 Language: Python
🔗 Repository: lenstronomy/lenstronomy