Skip to main content

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.1
  • numba >= 0.62.1
  • numpy >= 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.

Metadata

Release files for numba_extinction 0.1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numba_extinction 0.1.3.1
File Size Uploaded
numba_extinction-0.1.3.1.tar.gz 113.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for numba_extinction 0.1.3.1
File Interpreter ABI Platform
numba_extinction-0.1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 129.8 kB

Release files / numba_extinction-0.1.3.1.tar.gz

Download URL numba_extinction-0.1.3.1.tar.gz
Size 113.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b0c0a64baad61ba08d1b1c891b1f8faa4f8637178d226668532d144ccfe531ec
BLAKE2b-256 checksum
How to use checksums
cd1222ecdb942d7e700c8986260ea67fd9180c13190ae5ffbc5007f4e528239d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / numba_extinction-0.1.3.1-py3-none-any.whl

Download URL numba_extinction-0.1.3.1-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
183dce43dd5fc3887ac2b00dd372cbe4e6e1f0f542ee31347eceaf3bb651f0ba
BLAKE2b-256 checksum
How to use checksums
ca685f4097118d51c93782374b357aec7cdc84a74258644ac8989befb54263ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release history Release notifications | RSS feed

This release

0.1.3.1 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page