Skip to main content

Strong lens modeling package.

Project description

=============================
lenstronomy
=============================

.. image:: https://travis-ci.org/sibirrer/lenstronomy.png?branch=master
:target: https://travis-ci.org/sibirrer/lenstronomy

.. image:: https://readthedocs.org/projects/lenstronomy/badge/?version=latest
:target: http://lenstronomy.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://coveralls.io/repos/github/sibirrer/lenstronomy/badge.svg?branch=master
:target: https://coveralls.io/github/sibirrer/lenstronomy?branch=master


This package is designed to model strong lens systems.
The software is based on Birrer et al 2015, http://adsabs.harvard.edu/abs/2015ApJ...813..102B and finds application in
e.g. Birrer et al. 2016 for time-delay cosmography and Birrer et al. 2017 for lensing substructure analysis.


The development is coordinated on `GitHub <http://github.com/sibirrer/lenstronomy>`_ and contributions are welcome.
The documentation of **lenstronomy** is available at `readthedocs.org <http://lenstronomy.readthedocs.org/>`_



Installation
--------
* check out the github repository
>>> cd lenstronomy
>>> python setup.py install
or in development mode
>>> python setup.py develop
* it is recommended to check out and install the dependency fastell4py independently.
* run the test functions to see whether the installation was successful.
>>> cd lenstronomy
>>> py.test


Requirements
-------
* to run lens models with elliptical mass distributions, the fastell4py package, originally from Barkana (fastell),
is also required and can be cloned from: githug/sibirrer/fastell4py (needs a fortran compiler)
* CosmoHammer (through PyPi)
* standard python libraries (numpy, scipy)


Bug reporting and contributions
-------
* see CONTRIBUTING.rst
* you can also directly contact the lead developer, Simon Birrer

Modelling Features
--------

* Extended source reconstruction with basis sets (shapelets)
* Analytic light profiles for lens and source as options
* Point sources (including solving the lens equation)
* a variety of mass models to use
* non-linear line-of-sight description
* iterative point spread function
* linear and non-linear optimization modules



Analysis tools
-------
* Standardized fitting procedures for lens modelling
* Modular build up to design plugins by users
* Interactive jupyter notebooks
* Pre-defined plotting and illustration routines
* Particle swarm optimization for parameter fitting
* MCMC (emcee from CosmoHammer) for parameter inferences
* Kinematic modelling
* Cosmographic inference tools




Documentation
-------------

The full documentation can be generated with Sphinx



History
-------

0.1.0 (2014-05-26)
++++++++++++++++++

* First release on PyPI.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lenstronomy-0.0.1.tar.gz (164.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lenstronomy-0.0.1-py2-none-any.whl (234.8 kB view details)

Uploaded Python 2

File details

Details for the file lenstronomy-0.0.1.tar.gz.

File metadata

  • Download URL: lenstronomy-0.0.1.tar.gz
  • Upload date:
  • Size: 164.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lenstronomy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 56b2903269b48c4169b2c76f2a002fc1a89bb370ea0555ad8ae248fafd301243
MD5 88d848da994bb7207e7965794e2ee761
BLAKE2b-256 f42b4a7b0ae102094958b579e2b93add97a14709b3f8960fbbed119babfe1535

See more details on using hashes here.

File details

Details for the file lenstronomy-0.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for lenstronomy-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 f070f0e535f44af329153e3509a72668dbecfdf8978c03b107f86aaba5ebf2c6
MD5 3ab5e91ff858c933228ff690fa736518
BLAKE2b-256 7b08c298d6a632060d15da66354c9df2b9856ea3c2cdb1a055af0daa9682a704

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page