Skip to main content

4 1 symlens

https://img.shields.io/pypi/v/symlens.svg https://img.shields.io/travis/simonsobs/symlens.svg Documentation Status

This library allows one to build and evaluate arbitrary separable mode-coupling estimators. In practice, its main purpose is to provide a flat-sky lensing estimator code. More generally, one can build estimators and noise functions for convergence, magnification, shear, mixed estimators (for gradient cleaning), split-based lensing, birefringence, patchy tau, etc. and cross-covariances between these.

Instead of having to calculate by hand the separable forms of the above, one simply provides the mode-coupling and filter expressions, and a sympy-based (Mathematica-like) backend factorizes these expressions into FFT-only form (i.e., no explicit convolutions are required).

Curved sky support does not exist. Adding it is possibly non-trivial, but thoughts and ideas (and PRs!) are highly appreciated. Still, this package can serve as the backend for quick exploration of various kinds of estimators.

4.1 1.1 Dependencies

  • Python>=3.6

  • pixell

  • numpy, sympy

4.2 1.2 Installing

To install, run:

$ python setup.py install --user

4.3 1.3 Usage

See the Usage guide and the API Reference.

An important thing to remember is that by default, the code expects “physical” normalization of FFTs in pixell (not the default normalization in pixell), i.e. you should be passing in Fourier maps that come from something like

kmap = enmap.fft(imap,normalize='phys')

or

kmaps = enmap.map2harm(imaps,normalize='phys')

4.3.1 1.3.1 Contributing

If you have write access to this repository, please:

  1. create a new branch

  2. push your changes to that branch

  3. merge or rebase to get in sync with master

  4. submit a pull request on github

If you do not have write access, create a fork of this repository and proceed as described above.

5 2 History

5.1 2.1 0.1.0 (2019-03-06)

  • First release on PyPI.

5.2 2.2 0.3.3 (2020-07-25)

  • Better treatment of FFT factors

  • Lots of new features including bias hardening and isotropic RDN0

Release files for symlens 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for symlens 0.3.3
File Size Uploaded
symlens-0.3.3.tar.gz 433.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for symlens 0.3.3
File Interpreter ABI Platform
symlens-0.3.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 452.1 kB

Release files / symlens-0.3.3.tar.gz

Download URL symlens-0.3.3.tar.gz
Size 433.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e0837eea7c4314cf104b1e85b1b247ec328f55f5c797099957d6aede028fa6ef
BLAKE2b-256 checksum
How to use checksums
38187797877d5d48fd4b40d06c9b82231fa7d105ecd37ac1c33c1bc6b655b2e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.10

Release files / symlens-0.3.3-py2.py3-none-any.whl

Download URL symlens-0.3.3-py2.py3-none-any.whl
Size 19.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
11e2c34045cc9cd664ac03b95b63863f69fb3a550e387d61af4f9569210fc563
BLAKE2b-256 checksum
How to use checksums
15397889f67dd7499cbfaff9d3496c55906ffe688a5b57b2f8ea94bf137fc346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.10

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page