Skip to main content

fft based microlensing package

Project description

fastlens:

Public package of FFT based evaluation of extended source magnification, fastlens, which is named after fast microlensing. Please cite Sugiyama 2022.

FFT based method of extended soruce magnification is implemented in fastlens/mag_fft.py. FFT based method of time averaged magnification is implemented in fastlens/timeave.py.

Please cite my paper if you use my code for your project.

FFT based method uses public FFTLog code by Xiao Fang, available at FFTLog-and-beyond, and developed in Fang et al (2019); arXiv:1911.11947.

fft-extended-source is open source and distributed with MIT license.

Installation

This package is installable with both of pip and conda. Just install by running below on your shell

pip install fastlens

for pip user, or

conda install -c XXX fastlens

for conda user.

If you prefer to download the repo and install the package from source, run

python setup.py install

Contents: notebooks and a script

All the ipython notebooks are saved in ipynb direcotry. Tutorials are available in

  • howtouse.ipynb shows how to use module in magnification.
  • howtouse-previous-methods.ipynb shows how to use modeles for methods developed in the previous studies. Validation and comparison to previous methods are performed in
  • timeave.ipynb validate the accuracy of implementation of time averaging effect with FFT.
  • comparison.ipynb makes a plot of comparison of residuals by various evaluation methods of extended source magnification.
  • timeit_methods.ipynb measures computational time of various methods.
  • paperfig.ipynb can reproduce figures shown in the paper.
  • testdata.py is a module to generate reference magnification using scipy.integrate.quad, which will be used for validation of the FFT based method.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fastlens-1.0.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file fastlens-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: fastlens-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fastlens-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a7df569b260d3c4a3fd8b2781f1e3746213e7971f5dfae8912b7fc3707f134b
MD5 2ef355792c37bba2a6bd38ce82bcd729
BLAKE2b-256 6817d88edd67531df09d40f1fb7ab025487978a310749aba347c6a4ba3cdeba1

See more details on using hashes here.

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