Skip to main content

extinction.py rewritten almost from scratch using Numba.

Project description

numba_extinction

Numba'd version of the extinction package. Most of this was developed before finding the much-more-up-to-date dust_extinction.

The exctinction curves reproduce exactly (up to some e-15 due to float math) the curves produced by extinction. In addition, an equivalent implementation of the UV to IR extinction curve by Gordon et al. 2023 was implemented, and checked against dust_extinction for consistency.

I encourage you to check both packages out! dust_exctinction in particular is much more fleshed out and complete than the this package. Eventually I might try to implement all of the curves available there, but that is if I'll have time in the future.

Install instruction

  • clone the repository: git clone git@github.com:G-Francio/numba_exctinction.git
  • install as local package: pip install -e .

Requirements

Optional packages are only used for consistency checks and visualisation purposes.

  • numba
  • astropy
  • scipy
  • matplotlib [optional]
  • extinction [optional]
  • dust_exctinction [optional]

Links:

MIT License

Copyright (c) 2024 Francesco Guarneri

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

numba_extinction-0.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numba_extinction-0.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file numba_extinction-0.1.tar.gz.

File metadata

  • Download URL: numba_extinction-0.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for numba_extinction-0.1.tar.gz
Algorithm Hash digest
SHA256 b2ea8a3be947098dc9a68718aae3e67ba3951c4d0ec7ea47e36700f44a6647a5
MD5 d74d444250900a25f630530e1e59fa34
BLAKE2b-256 855203f6604a1cb653d214af2299254335b612447d6d5072817680e5dcb6e58c

See more details on using hashes here.

File details

Details for the file numba_extinction-0.1-py3-none-any.whl.

File metadata

  • Download URL: numba_extinction-0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for numba_extinction-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c773259421a2214f221b0f07cd4fd0bc51fc6bb23e8ff0f06899b7c0af3bf31a
MD5 5846d2750b92a1a0ee0ce824ad079727
BLAKE2b-256 40fe121dcd6c82e1b988be93820657374a7ed9aa5addaa3faf7b22a2d2e7f828

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page