{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/180309746","title":"Lenstronomy: multi-purpose gravitational lens modelling software package","arxiv_id":"1803.09746","date":"2018-03-26","proceeding":null,"authors":["Simon Birrer","Adam Amara"],"abstract":"We present Lenstronomy, a multi-purpose open-source gravitational lens modeling python package. 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 https://lenstronomy.readthedocs.io.","url_abs":"http://arxiv.org/abs/1803.09746v2","url_pdf":"http://arxiv.org/pdf/1803.09746v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"180309746","repo_url":"https://github.com/sibirrer/lenstronomy","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"paper_slug":"180309746","repo_url":"https://github.com/LBJ-Wade/lenstronomy","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"180309746","repo_url":"https://github.com/TDCOSMO/hierarchy_analysis_2020_public","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"180309746","repo_url":"https://github.com/aymgal/SLITronomy","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"unanswered"}},{"paper_slug":"180309746","repo_url":"https://github.com/jiwoncpark/baobab","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"180309746","repo_url":"https://github.com/lenstronomy/lenstronomy","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"paper_slug":"180309746","repo_url":"https://github.com/lsstdesc/slsprinkler","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"180309746","repo_url":"https://github.com/sibirrer/curved_arcs","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"180309746","repo_url":"https://github.com/sibirrer/lensing-astrometry","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"180309746","repo_url":"https://github.com/swagnercarena/ovejero","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"unanswered"}},{"paper_slug":"180309746","repo_url":"https://github.com/swagnercarena/paltas","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"180309746","repo_url":"https://github.com/ylilan/lenstruction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1803.09746","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1803.09746"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sibirrer/curved_arcs","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/LBJ-Wade/lenstronomy","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sibirrer/lensing-astrometry","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/TDCOSMO/hierarchy_analysis_2020_public","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aymgal/SLITronomy","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sibirrer/lenstronomy","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jiwoncpark/baobab","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ylilan/lenstruction","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lsstdesc/slsprinkler","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/swagnercarena/paltas","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lenstronomy/lenstronomy","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/swagnercarena/ovejero","reach":{"status":"unanswered"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":1,"ran":0,"repositories":1},"listed":{"samples":5,"ran":0,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"63d13a3a55ea8e29","entry":"boundary_max","repo":"lsstdesc/slsprinkler","repo_kind":"listed","path":"lensed_hosts/lensed_hosts_utils.py","file_url":"https://github.com/lsstdesc/slsprinkler/blob/HEAD/lensed_hosts/lensed_hosts_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"63d13a3a55ea8e29"}},{"code_sha256_prefix":"6fdaa0fa7154a300","entry":"lens_class","repo":"sibirrer/lenstronomy","repo_kind":"official","path":"lenstronomy/LensModel/profile_list_base.py","file_url":"https://github.com/sibirrer/lenstronomy/blob/HEAD/lenstronomy/LensModel/profile_list_base.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6fdaa0fa7154a300"}},{"code_sha256_prefix":"7bfd4ca720275301","entry":"random_location","repo":"lsstdesc/slsprinkler","repo_kind":"listed","path":"lensed_hosts/lensed_hosts_utils.py","file_url":"https://github.com/lsstdesc/slsprinkler/blob/HEAD/lensed_hosts/lensed_hosts_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7bfd4ca720275301"}},{"code_sha256_prefix":"16df0cdada6b5c11","entry":"redshift_binned_luminosity_function","repo":"jiwoncpark/baobab","repo_kind":"listed","path":"baobab/bnn_priors/parameter_models.py","file_url":"https://github.com/jiwoncpark/baobab/blob/HEAD/baobab/bnn_priors/parameter_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"16df0cdada6b5c11"}},{"code_sha256_prefix":"0ad8f4ec0d6bb270","entry":"size_from_luminosity_and_redshift_relation","repo":"jiwoncpark/baobab","repo_kind":"listed","path":"baobab/bnn_priors/parameter_models.py","file_url":"https://github.com/jiwoncpark/baobab/blob/HEAD/baobab/bnn_priors/parameter_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0ad8f4ec0d6bb270"}},{"code_sha256_prefix":"de5249e968c8ad9b","entry":"vel_disp_function_CPV2007","repo":"jiwoncpark/baobab","repo_kind":"listed","path":"baobab/bnn_priors/kinematics_models.py","file_url":"https://github.com/jiwoncpark/baobab/blob/HEAD/baobab/bnn_priors/kinematics_models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de5249e968c8ad9b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}