Installation¶
Prerequisites¶
- Rust toolchain (stable)
For Python bindings:
- Python >= 3.9
- maturin
- numpy
Python bindings¶
This builds and installs the blastwave package into the active virtualenv.
Virtual environment
Maturin requires a virtualenv or conda environment. Create one with:
HPC / module systems
On HPC clusters you may need to load compiler and Python modules first:
Building a wheel¶
To build a distributable wheel:
Rebuilding after code changes¶
If Rust source changes aren't taking effect, clean and rebuild:
Controlling parallelism¶
blastwave uses Rayon for multi-core parallelism in batch luminosity computations. By default it uses all available cores. To limit thread count: