`extinction.py` rewritten and extended using Numba.
Project description
numba_extinction
Numba-accelerated implementation of the extinction package.
This package rewrites and extends the functionality of extinction.py using Numba for performance.
It reproduces the original extinction curves (albeit with some ~1e-15 differences due to floating-point arithmetic).
An equivalent implementation of the UV-to-IR extinction curve by Gordon et al. (2023) is included and validated against dust_extinction for consistency.
Please check out dust_extinction too! It is much more fleshed-out and feature complete.
This package was developed for personal purposes before I discovered dust_extinction and is not meant to be a replacement.
Installation
You can install numba_extinction from PyPI or in editable mode for development.
Install from source
# Clone the repository
git clone https://github.com/G-Francio/numba_extinction.git
cd numba_extinction
# Install as a local editable package
pip install -e .
Install from PyPI
pip install numba_extinction
Requirements
The package requires:
astropy >= 7.1.1numba >= 0.62.1numpy >= 2.3.4
Optional extras can be installed for validation, convenience, and plotting purposes:
# Validation and plotting
# Install matplotlib and the packages required to run the example
pip install "numba_extinction[plot]"
# Convenience
# Additionally install IPython, notebooks, and matplotlib
pip install "numba_extinction[ipython]"
Links
Authors
Francesco Guarneri (francesco.guarneri@uni-hamburg.de)
ChatGPT - For this wonderful README.md :)
Licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file numba_extinction-0.1.3.tar.gz.
File metadata
- Download URL: numba_extinction-0.1.3.tar.gz
- Upload date:
- Size: 113.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
579a972926060686ba15b0fd53d00b103fc27b50f9131144ea472b2c68c5e3b3
|
|
| MD5 |
3f8e3fb81cd6d828697bcbfb531c39f7
|
|
| BLAKE2b-256 |
789b5016e3bec5b4d1ec495ef884dbe39c3fe30ebef7cead39f5edb4f991839d
|
File details
Details for the file numba_extinction-0.1.3-py3-none-any.whl.
File metadata
- Download URL: numba_extinction-0.1.3-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fb10b989a07a660fe9a853142eaf9a55a80f963aee14a21a0a06b3372dcfbe1
|
|
| MD5 |
be649a98f6d890e915768bb9718622ed
|
|
| BLAKE2b-256 |
96f6164494f139aece9d6b0a17ce2c4043d0192f8387174861ebd03ba6c9fc92
|