Skip to main content

lensed CMB sims pipe

Project description

# lenspyx

[![PyPI version](https://badge.fury.io/py/Lenspyx.svg)](https://badge.fury.io/py/Lenspyx)[![alt text](https://readthedocs.org/projects/lenspyx/badge/?version=latest)](https://lenspyx.readthedocs.io/en/latest)![Build Status](https://github.com/carronj/lenspyx/actions/workflows/pytest.yaml/badge.svg)

Curved-sky python lensed CMB maps simulation package by Julien Carron.

This allows one to build very easily lensed CMB simulations.

The package explicitly provides a few methods for most basic usage (such alm2lenmap and synfast). Check the [doc](https://lenspyx.readthedocs.io/en/latest) (which refers to the repo master branch). There is also a notebook [demo_lenspyx](examples/demo_lenspyx.ipynb) for examples and sanity checks.

There are further tools for CMB lensing reconstruction (adjoint lensing etc.) which may be useful to CMB-lensing intensive applications.

From v2 onwards (april 2023):

Lenspyx now essentially only wraps extremely efficient routines from [DUCC](https://gitlab.mpcdf.mpg.de/mtr/ducc) by M.Reinecke, with massive speed-ups and accuracy improvements (see [this paper](https://arxiv.org/abs/2304.10431)), in a way incompatible to v1 which is now abandoned.

Required is ducc0 version >= 0.30.0. For best performance, please refer to the [DUCC page](https://gitlab.mpcdf.mpg.de/mtr/ducc) for installation instructions making profit of compiler-specfic optimizations.

### Installation

The code should hopefully be platform independent.

Editable installation from source: clone the repo and

pip install –no-binary ducc0 -e ./ [–user]

From pypi

pip install –no-binary ducc0 lenspyx [–user]

The –-user is required only if you don’t have write permission to your main python installation. The ducc0 installation without binaries might take a while (several minutes).

In case you use this package and also wish to acknowledge it, you can provide a reference to [this paper](https://arxiv.org/abs/2304.10431).

![SNSF logo](./docs/SNF_logo_standard_web_color_neg_e.svg)

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

lenspyx-2.0.52.tar.gz (333.3 kB view details)

Uploaded Source

Built Distribution

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

lenspyx-2.0.52-py3-none-any.whl (349.4 kB view details)

Uploaded Python 3

File details

Details for the file lenspyx-2.0.52.tar.gz.

File metadata

  • Download URL: lenspyx-2.0.52.tar.gz
  • Upload date:
  • Size: 333.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.17

File hashes

Hashes for lenspyx-2.0.52.tar.gz
Algorithm Hash digest
SHA256 9088729373c967f2ae016184ae88fb51fd8746b1da687735898664947b6bae14
MD5 9423166b671b3530527f01c9396f3e8d
BLAKE2b-256 6480cf3d306cc0fac53e70f3c68d288af3ba0181c4e283f837c9380236b1e1bd

See more details on using hashes here.

File details

Details for the file lenspyx-2.0.52-py3-none-any.whl.

File metadata

  • Download URL: lenspyx-2.0.52-py3-none-any.whl
  • Upload date:
  • Size: 349.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.17

File hashes

Hashes for lenspyx-2.0.52-py3-none-any.whl
Algorithm Hash digest
SHA256 055dc3300ab328366ad2cbfab7b96750bc7b7cae7047700aad623192092cdce9
MD5 fb9eafea5e59b7f5a92b7a3d85c82475
BLAKE2b-256 e61b67858e1ccda0dd3a9ec9c986982e6d227035e368fc22329bfa58010b53f9

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