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.
fastlens 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.ipynbshows how to use module inmagnification.howtouse-previous-methods.ipynbshows how to use modeles for methods developed in the previous studies. Validation and comparison to previous methods are performed intimeave.ipynbvalidate the accuracy of implementation of time averaging effect with FFT.comparison.ipynbmakes a plot of comparison of residuals by various evaluation methods of extended source magnification.timeit_methods.ipynbmeasures computational time of various methods.paperfig.ipynbcan reproduce figures shown in the paper.testdata.pyis a module to generate reference magnification usingscipy.integrate.quad, which will be used for validation of the FFT based method.
Metadata
Release files for fastlens 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastlens-1.0.5.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastlens-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / fastlens-1.0.5.tar.gz
| Download URL | fastlens-1.0.5.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b07e07e37c102d1ebe6bf6c6cff3510d719688ea880e1ab17429a2648690b426
|
|
BLAKE2b-256 checksum How to use checksums |
c43805b44c91147ae97ac563769bf3b959dc6a5951bae6bffaf99d7911274940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / fastlens-1.0.5-py3-none-any.whl
| Download URL | fastlens-1.0.5-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99499355eef9b4003e2f3b4ef48a4a1afb6abb1a75c24d39e66b9530395f4499
|
|
BLAKE2b-256 checksum How to use checksums |
2f167cd1d75e0cd4dad0bc01444ae76593ebda19c90bb876ad7734d6ff9d60d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|