Installation
Basic install
Install from PyPI:
pip install jacscanomaly
For local development, install the repository in editable mode:
git clone git@github.com:NunotaKansuke/jacscanomaly.git
cd jacscanomaly
pip install -e .
Optional dependencies
Documentation dependencies:
pip install -e ".[docs]"
Test dependencies:
pip install -e ".[test]"
All development dependencies:
pip install -e ".[dev]"
FSPL and microjax
The PSPL workflow only needs the standard package dependencies. FSPL
magnification currently relies on the GitHub source version of microjax
because the PyPI package may not expose microjax.fastlens.fspl_disk.
Install microjax from source before using FSPL fitters:
git clone https://github.com/ShotaMiyazaki94/microjax.git
cd microjax
pip install -e .
C++ backend
The package includes a C++ grid backend and C++ PSPL fitting backend. They are
built through setup.py using OpenMP:
pip install -e .
If the extension does not build, check that your compiler supports
-fopenmp and C++17. You can still request the JAX backend explicitly, but
the standard PSPL survey workflow uses the C++ backend.