Skip to main content

FPFS: Fourier Power Function Shaplets (A fast, accurate shear estimator)


docs tests pypi License: GPL v3 Code style: black

Fourier Power Function Shapelets (FPFS) is an innovative estimator for the shear responses of galaxy shape, flux, and detection. Utilizing leading-order perturbations of shear (a vector perturbation) and image noise (a tensor perturbation), FPFS determines shear and noise responses for both measurements and detections. Unlike traditional methods that distort each observed galaxy repeatedly, FPFS employs analytical shear responses of select basis functions, including Shapelets basis and peak basis. Remarkably efficient, FPFS can process approximately 1,000 galaxies within a single CPU second. Testing under simple simulations has proven its capability to maintain a multiplicative shear estimation bias below 0.5%, even amidst blending challenges. For further details, refer to the FPFS module documentation here.


Installation

For stable (old) version, which have not been updated:

pip install fpfs

Or clone the repository:

git clone https://github.com/mr-superonion/FPFS.git
cd FPFS
pip install -e . --user

Before using the code, please setup the jax environment

source fpfs_config

Reference

The following papers are ready to be cited if you find any of these papers interesting or use the pipeline. Comments are welcome.

  • version 3: Li & Mandelbaum (2022) correct for detection bias from pixel level by interpreting smoothed pixel values as a projection of signal onto a set of basis functions.

  • version 2: Li , Li & Massey (2022) derive the covariance matrix of FPFS measurements and corrects for noise bias to second-order. In addition, it derives the correction for selection bias.

  • version 1: Li et. al (2018) build up the FPFS formalism based on Fourier_Quad and polar shapelets.


Development

Before sending pull request, please make sure that the modified code passed the pytest and flake8 tests. Run the following commands under the root directory for the tests:

flake8
pytest -vv

Metadata

Release files for fpfs 3.1.1

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

Source distribution (sdist)

Source distribution for fpfs 3.1.1
File Size Uploaded Provenance Actions
fpfs-3.1.1.tar.gz 18.5 MB Without provenance Details for fpfs-3.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fpfs 3.1.1
File Interpreter ABI Platform Actions
fpfs-3.1.1-py3-none-any.whl Python 3 none any Details for fpfs-3.1.1-py3-none-any.whl

Total release size: 37.4 MB

Release files / fpfs-3.1.1.tar.gz

Download URL fpfs-3.1.1.tar.gz
Size 18.5 MB
Tags Source
SHA-256 checksum
How to use checksums
37882cdfca3f9e6fbe38306a75f0ed954c352fb3c32865cee8b2cea303fef673
BLAKE2b-256 checksum
How to use checksums
1f1202ed6d244403ae77fb1a817215f0e22267c755599102e87f3ec908139dc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / fpfs-3.1.1-py3-none-any.whl

Download URL fpfs-3.1.1-py3-none-any.whl
Size 18.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0f6b1c1e657e2133416c90c40f524f513ec51c269f342e4909701469138aceac
BLAKE2b-256 checksum
How to use checksums
77ab681728b6b07a7c5643f727288f37a6b137f45f37e7416168ae6a73a43efc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for fpfs 3.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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