Skip to main content

Toolkit for Weak Gravitational Lensing analysis

Project description

Welcome to LensTools! Documentation Status

This python package collects together a suite of widely used analysis tools in Weak Gravitational Lensing. For more information visit the project official page. If you make use of this code in your work, please cite it!



  • RayTracer can now perform line of sight integrations to approximate kappa (Born, lens-lens and geodesic perturbation) and omega (lens-lens), without full raytracing

  • cutPlanes can now handle snapshots in FastPM format

  • If snapshots are provided in light cone projections, LensTools can do plane cutting, raytracing and LOS integrations in a single script

  • Fit multiple observations with the same FisherAnalysis


  • ShearCatalog allows to re-bin galaxies according to redshift

  • Introduced a SquareMaxtrix class (inherits from Ensemble) for square matrix operations, with column name support

  • Protect nodes in a SimulationBatch to call forbidden methods


  • Database class for local/remote SQL databases

  • Gadget2SnapshotPipe class allows to combine Gadget2 and lenstools.planes via named pipes

  • Improvements in pipeline deployment


  • Weak lensing pipeline functionalities

  • Measure 2pcf of convergence maps with hankel transforms

  • Moved Limber module under lenstools.simulations

  • Dedicated module for Fast Fourier Transforms

  • Ensemble is now a sub-class of pandas.DataFrame

  • New operations in Ensemble: bootstrap, readall, shuffle

  • Ensemble mean is automatically recomputed when re–assigning data


Beta release

Project details

Download files

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

Source Distribution

lenstools-0.8.1.tar.gz (235.7 kB view hashes)

Uploaded source

Supported by

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