Skip to content

lenstronomy: multi-purpose gravitational lens modelling software package

Research output: Contribution to journalArticlepeer-review

We present lenstronomy, a multi-purpose open-source gravitational lens modelling pythonpackage. lenstronomy is able to reconstruct the lens mass and surface brightness distributions of strong lensing systems using forward modelling. lenstronomy supports a wide range of analytic lens and light models in arbitrary combination. The software is also able to reconstruct complex extended sources (Birrer et. al 2015) as well as being able to model point sources. We designed lenstronomy to be stable, flexible and numerically accurate, with a clear user interface that could be deployed across different platforms. Throughout its development, we have actively used lenstronomy to make several measurements including deriving constraints on dark matter properties in strong lenses, measuring the expansion history of the universe with time-delay cosmography, measuring cosmic shear with Einstein rings and decomposing quasar and host galaxy light. The software is distributed under the MIT license. The documentation, starter guide, example notebooks, source code and installation guidelines can be found at

Original languageEnglish
Pages (from-to)189-201
Number of pages13
JournalPhysics of the Dark Universe
Early online date12 Nov 2018
Publication statusPublished - Dec 2018

Related information

Relations Get citation (various referencing formats)

ID: 20381538